Skip to content

Commit 2d3b8b8

Browse files
Merge pull request #5196 from peterschrammel/fix-3981
Do not pass empty commandline argument in test.pl [TG-9888] [blocks: 4753]
2 parents 87c3a39 + 386a03f commit 2d3b8b8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

regression/test.pl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ sub with_color {
3333

3434
sub run($$$$$) {
3535
my ($name, $input, $cmd, $options, $output) = @_;
36-
my $cmdline = "$cmd $options '$input' >'$output' 2>&1";
36+
my $cmdline;
37+
if(length($input)) {
38+
$cmdline = "$cmd $options '$input' >'$output' 2>&1";
39+
} else {
40+
$cmdline = "$cmd $options >'$output' 2>&1";
41+
}
3742

3843
print LOG "Running $cmdline\n";
3944
system("bash", "-c", "cd '$name' ; $cmdline");

0 commit comments

Comments
 (0)