diff options
-rwxr-xr-x | testserver.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/testserver.pl b/testserver.pl index 9c12b9573..af4ba67e7 100755 --- a/testserver.pl +++ b/testserver.pl @@ -21,7 +21,13 @@ use strict; use lib "."; -use Bugzilla; +BEGIN { + my $envpath = $ENV{'PATH'}; + require Bugzilla; + # $ENV{'PATH'} is required by the 'ps' command to run correctly. + $ENV{'PATH'} = $envpath; +} + use Bugzilla::Constants; use Socket; |