From b9fc87adf210ee55e7334493890760640de9c52c Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Fri, 1 Feb 2019 23:56:02 -0500 Subject: [PATCH] fix tests broken by start_morbo being sloppy --- scripts/start_morbo | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/start_morbo b/scripts/start_morbo index 144613353..ada3255a8 100755 --- a/scripts/start_morbo +++ b/scripts/start_morbo @@ -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: $!"; -- 2.47.3