forked from Lainports/opnsense-ports
29 lines
1.5 KiB
Raku
29 lines
1.5 KiB
Raku
--- test/test.pl.orig 2017-10-18 09:33:24 UTC
|
|
+++ test/test.pl
|
|
@@ -381,7 +381,7 @@ sub _cmd
|
|
else
|
|
{
|
|
# child
|
|
- exec('/bin/bash', '-o','pipefail','-c', $cmd) or error("Cannot execute the command [/bin/sh -o pipefail -c $cmd]: $!");
|
|
+ exec('/usr/local/bin/bash', '-o','pipefail','-c', $cmd) or error("Cannot execute the command [/usr/local/bin/sh -o pipefail -c $cmd]: $!");
|
|
}
|
|
return ($? >> 8, join('',@out));
|
|
}
|
|
@@ -782,7 +782,7 @@ sub test_usage
|
|
my $command = $args{cmd};
|
|
my $commandpath = $$opts{bin}."/".$command;
|
|
my ($ret,$out) = _cmd("$commandpath $args{redirection} 2>&1");
|
|
- if ( $out =~ m/\/bin\/bash.*no.*such/i ) { failed($opts,$test,"could not run $commandpath: $out"); return; }
|
|
+ if ( $out =~ m/\/usr\/local\/bin\/bash.*no.*such/i ) { failed($opts,$test,"could not run $commandpath: $out"); return; }
|
|
|
|
my @sections = ($out =~ m/(^[A-Za-z]+.*?)(?:(?=^[A-Za-z]+:)|\z)/msg);
|
|
|
|
@@ -833,7 +833,7 @@ sub test_usage_subcommand
|
|
my $subcommand = $args{subcmd};
|
|
my $commandpath = $$opts{bin}."/".$command;
|
|
my ($ret,$out) = _cmd("$commandpath $subcommand $args{redirection} 2>&1");
|
|
- if ( $out =~ m/\/bin\/bash.*no.*such/i ) { failed($opts,$test,"could not run $commandpath $subcommand: $out"); return; }
|
|
+ if ( $out =~ m/\/usr\/local\/bin\/bash.*no.*such/i ) { failed($opts,$test,"could not run $commandpath $subcommand: $out"); return; }
|
|
|
|
my @sections = ($out =~ m/(^[A-Za-z]+.*?)(?:(?=^[A-Za-z]+:)|\z)/msg);
|
|
|