Open Bug 747613 Opened 14 years ago Updated 9 years ago

Unable to run testrunner.pl

Categories

(Testopia :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: florijn.peter, Assigned: gregaryh)

Details

Attachments

(1 file)

Setup Bugzilla 4.2.1 / Testopia 2.5 After the upgrade of Testopia I try to run the testrunner.pl testscript provided in extensions/Testopia directory. This script fails with Can't locate Bugzilla/Extension/Testopia/Test/Constants.pm in @INC (@INC contains: CODE(0x7ff1121f57d8) . t ../.. /Library/Perl/5.12/darwin-thread-multi-2level /Library/Perl/5.12 /Network/Library/Perl/5.12/darwin-thread-multi-2level /Network/Library/Perl/5.12 /Library/Perl/Updates/5.12.3/darwin-thread-multi-2level /Library/Perl/Updates/5.12.3 /System/Library/Perl/5.12/darwin-thread-multi-2level /System/Library/Perl/5.12 /System/Library/Perl/Extras/5.12/darwin-thread-multi-2level /System/Library/Perl/Extras/5.12) at testrunner.pl line 35. BEGIN failed--compilation aborted at testrunner.pl line 35. Tried to figure out how to influence usae lib to find it. No success. Seems like the testscripts need some documentation and some updates as well.
Tests are severely broken. There are many errors in them. I have a patch which fixes your specific error, but another error appears immediately: t/SE_environments.t .. Global symbol "%Config" requires explicit package name at /opt/perl/lib/5.14.2/i686-linux/lib.pm line 10.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: unspecified → 2.4
Attached patch patch, v1Splinter Review
With this patch applied, do you also see the error I mentioned in my comment above?
Applied above mentioned patch Got the same error: t/SE_environments.t .. Global symbol "%Config" requires explicit package name at /System/Library/Perl/5.12/darwin-thread-multi-2level/lib.pm line 10. Global symbol "%Config" requires explicit package name at /System/Library/Perl/5.12/darwin-thread-multi-2level/lib.pm line 11. Global symbol "%Config" requires explicit package name at /System/Library/Perl/5.12/darwin-thread-multi-2level/lib.pm line 12. Compilation failed in require at t/SE_environments.t line 25. BEGIN failed--compilation aborted at t/SE_environments.t line 25. Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run
Google told me somebody suggested a work around by adding my %Config = (); Just before use Config. Adding this to t/SE_environments.t advances the test but now halts on another file with the same error. Patched this the sameway and it advances and halts at the next. Stopped here for now. This must be a generic problem, not necessary related to Testopia.
Target Milestone: --- → 2.6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: