Skip to content

Commit fce8a7e

Browse files
committed
Allow filenames passed in to test on CL
1 parent 7563e0c commit fce8a7e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

xt/aspell.t

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ use lib 'lib';
44

55
my @files;
66

7-
for qx<git ls-files>.lines -> $file {
8-
next unless $file ~~ / '.pod6' $/;
9-
next if $file ~~ / 'contributors.pod6' $/; # names are hard.
10-
push @files, $file;
7+
if @*ARGS {
8+
@files = @*ARGS;
9+
} else {
10+
for qx<git ls-files>.lines -> $file {
11+
next unless $file ~~ / '.pod6' $/;
12+
next if $file ~~ / 'contributors.pod6' $/; # names are hard.
13+
push @files, $file;
14+
}
1115
}
1216

1317
plan +@files;

0 commit comments

Comments
 (0)