Skip to content

Commit 61a7f63

Browse files
committed
another attempt to fix perl6 invocation in tests
1 parent 7f925f9 commit 61a7f63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/Test/Util.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ sub get_out( Str $code, Str $input?, :@args, :@compiler-args) is export {
9393

9494
my $perl6 = $*EXECUTABLE_NAME;
9595
my $cmd = $perl6 ~~ m:i/niecza/ ?? "mono $perl6 " !! "$perl6 ";
96+
$perl6 ~~ s{^perl6}{./perl6};
9697
$cmd = $perl6 ~ ' ';
97-
$cmd = $perl6 ~~ m:i/^perl6/ ?? "./perl6 " !! "$perl6 ";
9898
$cmd ~= @compiler-args.join(' ') ~ ' ' if @compiler-args;
9999
$cmd ~= $fnbase ~ '.code' if $code.defined;
100100
$cmd ~= " @actual_args.join(' ') < $fnbase.in > $fnbase.out 2> $fnbase.err";

0 commit comments

Comments
 (0)