Skip to content

Commit cd370cf

Browse files
committed
Add return statement to tests which should be skipped if dependencies are missing
1 parent d6f3cb9 commit cd370cf

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

t/command-bootstrap-man.t

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ use Test;
1212
if (!which("a2x")) {
1313
note "'a2x' is not available";
1414
done-testing;
15+
return;
1516
}
1617

1718
if (!which("gzip")) {
1819
note "'gzip' is not available";
1920
done-testing;
21+
return;
2022
}
2123

2224
multi sub MAIN { 0 }

t/command-dist.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ multi sub MAIN { 0 }
1313
if (!which("tar")) {
1414
note "'tar' is not available";
1515
done-testing;
16+
return;
1617
}
1718

1819
my $root = tempdir;

0 commit comments

Comments
 (0)