aboutsummaryrefslogtreecommitdiff
path: root/t/travis.t
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-16 22:26:52 +0100
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2015-12-16 22:26:52 +0100
commit427f07ee9ec06573afcbba8dd5c9efda4399c9b2 (patch)
tree767314687cafb6635835cf0c2acf883786372bdd /t/travis.t
parent24774c8c72888362b4b74304c34d18ca34de1fe5 (diff)
downloadsbotools2-427f07ee9ec06573afcbba8dd5c9efda4399c9b2.tar.xz
Short-circuit run() if cmd isn't given
Diffstat (limited to 't/travis.t')
-rwxr-xr-xt/travis.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/travis.t b/t/travis.t
index abcd327..bb2a60a 100755
--- 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 {