Skip to content

Commit

Permalink
better skip
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed May 11, 2024
1 parent 9c8a452 commit 29607a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,8 @@ function printSkipMessage(msg) {

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

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

0 comments on commit 29607a1

Please sign in to comment.