aboutsummaryrefslogtreecommitdiff
path: root/t/travis.t
diff options
context:
space:
mode:
Diffstat (limited to 't/travis.t')
-rwxr-xr-xt/travis.t5
1 files changed, 2 insertions, 3 deletions
diff --git a/t/travis.t b/t/travis.t
index df44cf8..abcd327 100755
--- a/t/travis.t
+++ b/t/travis.t
@@ -25,13 +25,12 @@ sub run {
@_
);
my $cmd = shift @{ $args{cmd} };
- my @args = @{ $args{cmd} };
- my @cmd = ($^X, "-I$lib", "$path/$cmd", @args);
+ my @cmd = ($^X, "-I$lib", "$path/$cmd", @{ $args{cmd} });
my $exit = $args{exit};
my ($output, $return) = capture_merged {
my $ret;
if (defined(my $input = $args{input})) {
- $ret = system(qw/bash -c/, "$^X -I$lib $path/$cmd @args <<END\n$input\nEND\n") && $? >> 8;
+ $ret = system(qw/bash -c/, "@cmd <<END\n$input\nEND\n") && $? >> 8;
}
else {
$ret = system(@cmd) && $? >> 8;