Skip to content

Commit 29607a1

Browse files
committed
better skip
1 parent 9c8a452 commit 29607a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/common/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,8 @@ function printSkipMessage(msg) {
603603

604604
function skip(msg) {
605605
printSkipMessage(msg);
606-
process.exit(0);
606+
// In known_issues test, skipping should produce a non-zero exit code.
607+
process.exit(require.main?.filename.startsWith(path.resolve(__dirname, '../known_issues/')) ? 1 : 0);
607608
}
608609

609610
// Returns true if the exit code "exitCode" and/or signal name "signal"

0 commit comments

Comments
 (0)