Fixed errors calling executables in the test suite helper.
This commit is contained in:
parent
a6eb566703
commit
b9878d58d7
@ -264,7 +264,7 @@ sub read_file($) {
|
|||||||
} else {
|
} else {
|
||||||
my ($PH, $CMD);
|
my ($PH, $CMD);
|
||||||
$CMD = where_is "bzip2";
|
$CMD = where_is "bzip2";
|
||||||
$CMD = "bzip2 -cd \"$file\"";
|
$CMD = "\"$CMD\" -cd \"$file\"";
|
||||||
open $PH, "$CMD |" or die this_file . ": $CMD: $!";
|
open $PH, "$CMD |" or die this_file . ": $CMD: $!";
|
||||||
$content = join "", <$PH>;
|
$content = join "", <$PH>;
|
||||||
close $PH or die this_file . ": $CMD: $!";
|
close $PH or die this_file . ": $CMD: $!";
|
||||||
@ -287,7 +287,7 @@ sub read_file($) {
|
|||||||
} else {
|
} else {
|
||||||
my ($PH, $CMD);
|
my ($PH, $CMD);
|
||||||
$CMD = where_is "xz";
|
$CMD = where_is "xz";
|
||||||
$CMD = "xz -cd \"$file\"";
|
$CMD = "\"$CMD\" -cd \"$file\"";
|
||||||
open $PH, "$CMD |" or die this_file . ": $CMD: $!";
|
open $PH, "$CMD |" or die this_file . ": $CMD: $!";
|
||||||
$content = join "", <$PH>;
|
$content = join "", <$PH>;
|
||||||
close $PH or die this_file . ": $CMD: $!";
|
close $PH or die this_file . ": $CMD: $!";
|
||||||
|
Loading…
Reference in New Issue
Block a user