Closed
Bug 211188
Opened 21 years ago
Closed 20 years ago
Test for any #! lines that are not /usr/bin/perl
Categories
(Bugzilla :: Testing Suite, defect)
Bugzilla
Testing Suite
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: zach, Assigned: Wurblzap)
References
()
Details
Attachments
(1 file, 1 obsolete file)
1.12 KB,
patch
|
goobix
:
review+
|
Details | Diff | Splinter Review |
Spinoff from bug 211127:
We need to add something to goodperl.t to look for shebang lines that point to
/usr/bonsaitools/bin/perl or another other than /usr/bin/perl.
At the same time, we should be careful since admins may modify the shebang line
of every cgi and we don't want massive test failure.
Comment 1•21 years ago
|
||
if they modify the rest of the files, they can modify the test, too.
We can point this out in the docs where we talk about modifying the #! line,
too, and point out that it's a good test to run to make sure they got all of
them, too :)
Comment 2•21 years ago
|
||
In distribution file bugzilla-2.16.5.tar.gz all she-bang lines pointed to
/usr/bonsaitools/bin/perl , but most Linux distributions have Perl in
/usr/bin/perl. Before a distribution those can be easily changed to more common
Perl location.
Assignee | ||
Comment 3•20 years ago
|
||
Assignee | ||
Updated•20 years ago
|
Attachment #157139 -
Flags: review?
Comment 4•20 years ago
|
||
Comment on attachment 157139 [details] [diff] [review]
Patch
There is redundancy regarding the location of the perl script.
Dave said in item1 something about admins changing this location in the testing
suite as well, so we should make this easy for them. I'd prefer to have a
variable or something like that containing '/usr/bin/perl', and use that
instead of hard-coding '/usr/bin/perl' each time we need it. It removes
redundancy as well.
Or redesign the code so that '/usr/bin/perl' appears only once in the 002 test
:)
Attachment #157139 -
Flags: review? → review-
Updated•20 years ago
|
OS: MacOS X → All
Hardware: Macintosh → All
Assignee | ||
Comment 5•20 years ago
|
||
(In reply to comment #4)
> Or redesign the code so that '/usr/bin/perl' appears only once in the 002
test
> :)
Ok, did that.
Attachment #157139 -
Attachment is obsolete: true
Assignee | ||
Updated•20 years ago
|
Attachment #157312 -
Flags: review?
Updated•20 years ago
|
Attachment #157312 -
Flags: review? → review+
Updated•20 years ago
|
Assignee: zach → marcschum
Flags: approval?
Flags: approval2.18?
Updated•20 years ago
|
Status: NEW → ASSIGNED
Comment 6•20 years ago
|
||
Ideally a new patch should be attached for committing with the updates. Thanks :)
Assignee | ||
Comment 7•20 years ago
|
||
kiko: what exactly are you missing? Attachment 157312 [details] [diff] is up to date, right?
Comment 8•20 years ago
|
||
Waiting for Christian to respond before approving.
Assignee | ||
Comment 9•20 years ago
|
||
(In reply to comment #6)
> Ideally a new patch should be attached for committing with the updates. Thanks
kiko: I hope you don't mind me ccing you -- was this meant for some other bug,
perhaps?
Comment 10•20 years ago
|
||
Sorry, it was meant for another bug, ignore me :)
Updated•20 years ago
|
Flags: documentation?
Flags: documentation2.18?
Flags: approval?
Flags: approval2.18?
Flags: approval2.18+
Flags: approval+
Updated•20 years ago
|
Target Milestone: --- → Bugzilla 2.18
Comment 11•20 years ago
|
||
Checking in t/002goodperl.t;
/cvsroot/mozilla/webtools/bugzilla/t/002goodperl.t,v <-- 002goodperl.t
new revision: 1.15; previous revision: 1.14
done
Checking in t/002goodperl.t;
/cvsroot/mozilla/webtools/bugzilla/t/002goodperl.t,v <-- 002goodperl.t
new revision: 1.13.2.2; previous revision: 1.13.2.1
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 12•20 years ago
|
||
Bug 278336 has been added to incorporate documentation changes for this
enhancement.
No longer blocks: 278336
Updated•20 years ago
|
Flags: documentation?
Flags: documentation2.18?
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•