]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
fix tests broken by start_morbo being sloppy
authorDylan William Hardison <dylan@hardison.net>
Sat, 2 Feb 2019 04:56:02 +0000 (23:56 -0500)
committerDylan William Hardison <dylan@hardison.net>
Sat, 2 Feb 2019 04:56:02 +0000 (23:56 -0500)
scripts/start_morbo

index 14461335376be7bfb88beb80edb1ef900fe868dd..ada3255a893892cb88c8302e04639aef372ffc5a 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/env perl
-
+use strict;
+use warnings;
 use File::Basename qw(basename dirname);
 use File::Spec::Functions qw(catfile catdir);
 use Cwd qw(realpath);
@@ -14,6 +15,7 @@ BEGIN {
     catdir($BUGZILLA_DIR, qw(local lib perl5))
   );
 }
+use autodie;
 use Env qw(
   @PATH @PERL5LIB
   $MOJO_LISTEN $MOJO_REVERSE_PROXY
@@ -37,7 +39,7 @@ $MOJO_REVERSE_PROXY           //= $BUGZILLA_DIR ne '/vagrant';
 $LOG4PERL_CONFIG_FILE         //= 'log4perl-morbo.conf';
 
 my @files
-  = ('Bugzilla.pm', 'Bugzilla', glob("*.cgi"), 'extensions', 'template');
+  = ('Bugzilla.pm', 'Bugzilla', glob('*.cgi'), 'extensions', 'template');
 my @watch = map { ('-w' => $_) } (@files);
 
-exec morbo => @watch, '-v', 'bugzilla.pl';
+exec morbo => @watch, '-v', 'bugzilla.pl' or die "starting morbo failed: $!";