commit 427f07ee9ec06573afcbba8dd5c9efda4399c9b2
parent 24774c8c72888362b4b74304c34d18ca34de1fe5
Author: Andreas Guldstrand <andreas.guldstrand@gmail.com>
Date: Wed, 16 Dec 2015 22:26:52 +0100
Short-circuit run() if cmd isn't given
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/t/travis.t b/t/travis.t
@@ -25,6 +25,7 @@ sub run {
@_
);
my $cmd = shift @{ $args{cmd} };
+ return undef unless defined $cmd;
my @cmd = ($^X, "-I$lib", "$path/$cmd", @{ $args{cmd} });
my $exit = $args{exit};
my ($output, $return) = capture_merged {