Closed Bug 310070 Opened 19 years ago Closed 19 years ago

runtests.pl reports errors when the 'shutdownhtml' parameter is turned on

Categories

(Bugzilla :: Testing Suite, defect)

2.21
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 2.22

People

(Reporter: LpSolit, Assigned: Wurblzap)

Details

(Keywords: regression)

Attachments

(1 file)

An administrator may decide to shut down Bugzilla while hacking the code, and
could also want to run runtests.pl before reactivating Bugzilla in order to make
sure he didn't do errors. But runtests.pl whines that he should do another job
(i.e. reports a full list of errors). :( This is annoying because the only way
to run runtests.pl correctly is to reactivate Bugzilla before being sure
everything is fine.
Flags: blocking2.22?
Attached patch Patch β€” β€” Splinter Review
Assignee: zach → wurblzap
Status: NEW → ASSIGNED
Attachment #204538 - Flags: review?(LpSolit)
Comment on attachment 204538 [details] [diff] [review]
Patch

This patch fixes the problem, but I want a second review.

This patch needs to be backported to 2.20.
Attachment #204538 - Flags: review?(mkanat)
Attachment #204538 - Flags: review?(LpSolit)
Attachment #204538 - Flags: review+
(In reply to comment #2)
> This patch needs to be backported to 2.20.

err... sorry, 2.20 is not affected.
Target Milestone: --- → Bugzilla 2.22
Comment on attachment 204538 [details] [diff] [review]
Patch

No... just put the script in SHUTDOWNHTML_EXEMPT.
Attachment #204538 - Flags: review?(mkanat) → review-
Comment on attachment 204538 [details] [diff] [review]
Patch

OK, yes, that looks good.

The comment is unclear, though -- make it more specific.

Nit: You don't need to add a whole new line for $^C. You can just keep it on the same line as Param("shutdownhtml").
Attachment #204538 - Flags: review- → review+
Flags: approval?
Ok, the comment will read on check-in like this:

# Because this is code which is run live from perl "use" commands of other
# scripts, we're skipping this part if we get here during a perl syntax check
# -- runtests.pl compiles scripts without running them, so we need to make sure
# that this check doesn't apply to 'perl -c' calls.
Flags: blocking2.22?
Flags: blocking2.22+
Flags: approval?
Flags: approval+
Keywords: regression
Checking in Bugzilla.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla.pm,v  <--  Bugzilla.pm
new revision: 1.26; previous revision: 1.25
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: