diff options
author | wurblzap%gmail.com <> | 2005-12-03 06:16:36 +0000 |
---|---|---|
committer | wurblzap%gmail.com <> | 2005-12-03 06:16:36 +0000 |
commit | 2b8708b27ec2eaf3f220db1da3395196aad78f1f (patch) | |
tree | 3ab81b11e7f675261fe75db80633423b672fb9db /Bugzilla.pm | |
parent | a7dcbeca4802193bee9997b71d6fc5f5bb9155aa (diff) | |
download | bugs-2b8708b27ec2eaf3f220db1da3395196aad78f1f.tar bugs-2b8708b27ec2eaf3f220db1da3395196aad78f1f.tar.gz bugs-2b8708b27ec2eaf3f220db1da3395196aad78f1f.tar.bz2 bugs-2b8708b27ec2eaf3f220db1da3395196aad78f1f.tar.xz bugs-2b8708b27ec2eaf3f220db1da3395196aad78f1f.zip |
Bug 310070: runtests.pl reports errors when the 'shutdownhtml' parameter is turned on.
Patch by Marc Schumann <wurblzap@gmail.com>,
r=LpSolit, r=mkanat, a=justdave
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index 115d15e57..86d6e6e70 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -61,9 +61,15 @@ use constant SHUTDOWNHTML_EXIT_SILENTLY => [ # message to the user about the downtime and log out. Scripts listed in # SHUTDOWNHTML_EXEMPT are exempt from this message. # +# 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. +# # This code must go here. It cannot go anywhere in Bugzilla::CGI, because # it uses Template, and that causes various dependency loops. -if (Param("shutdownhtml") +if (!$^C + && Param("shutdownhtml") && lsearch(SHUTDOWNHTML_EXEMPT, basename($0)) == -1) { # Allow non-cgi scripts to exit silently (without displaying any |