
sunnavy at bestpractical
Jul 28, 2010, 2:14 AM
Post #14 of 14
(1767 views)
Permalink
|
I'm glad that it works for you now. the test failure is indeed weird though, how is it for other tests below t/web? e.g. how is t/web/rights.t? Most of them use the same $m->login stuff, so normally, they should all pass or none passes at all. best wishes sunnavy On 10-07-28 10:58, Joop wrote: > sunnavy wrote: > >Hi Joop > > > >I just fixed "before" and "after" in cf-date too, > >could you run tests in t/api/cf_date_search.t and t/web/cf_date.t and > >see if all of them can pass? > > Test t/api/cf_date_search.t all pass > Test t/web/cf_date.t does not pass, in fact it errors out rather soon. > t/web/cf_date.t .. > 1..46 > You can connect to your server at http://127.0.0.1:2296/ > ok 1 - started server > not ok 2 - logged in as root > # error: page has no Logout > > # Failed test 'logged in as root' > # at t/web/cf_date.t line 10. > ok 3 - load root user > not ok 4 - admin screen > not ok 5 - admin-cf screen > # Create a CF > > # Failed test 'admin screen' > # at t/web/cf_date.t line 20. > # got: undef > # expected: "RT Administration" > > # Failed test 'admin-cf screen' > # at t/web/cf_date.t line 22. > # got: undef > # expected: "Select a Custom Field" > There is no form named "ModifyCustomField" at > /usr/lib/perl5/site_perl/5.8.8/WWW/Mechanize.pm line 1867, <DATA> > line 16. > There is no form named "ModifyCustomField" at > /usr/lib/perl5/site_perl/5.8.8/WWW/Mechanize.pm line 1867, <DATA> > line 16. > # Some tests failed or we bailed out, tmp directory > '/home/rt/rt/t/tmp/Pks5xJL36g' is not cleaned > # Looks like you planned 46 tests but ran 5. > # Looks like you failed 3 tests of 5 run. > # Looks like your test exited with 255 just after 5. > Dubious, test returned 255 (wstat 65280, 0xff00) > Failed 44/46 subtests > > Test Summary Report > ------------------- > t/web/cf_date.t (Wstat: 65280 Tests: 5 Failed: 3) > Failed tests: 2, 4-5 > Non-zero exit status: 255 > Parse errors: Bad plan. You planned 46 tests but ran 5. > Files=1, Tests=5, 12 wallclock secs ( 0.03 usr 0.02 sys + 3.35 > cusr 0.89 csys = 4.29 CPU) > Result: FAIL > Failed 1/1 test programs. 3/5 subtests failed. > > I had a look at the test file but can't find the problem. Is it > because it is run as the only test and not from 'make test' ? > What am I doing wrong. > > The tests that I have done myself are all OK. No more errors in > var/rt.log and searching returns the correct results. > > Regards, > > Joop > _______________________________________________ List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
|