Skip to content

Commit 2835a67

Browse files
test: fix run-test-unit.mjs to exit with 1 when test fails
1 parent 21db2c9 commit 2835a67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/npm-packages/ruby-wasm-wasi/tools/run-test-unit.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ const test = async (instantiate) => {
151151
await vm.evalAsync(`
152152
require 'test/unit'
153153
require_relative '${rootTestFile}'
154-
Test::Unit::AutoRunner.run
154+
ok = Test::Unit::AutoRunner.run
155+
exit(1) unless ok
155156
`);
156157
};
157158

0 commit comments

Comments
 (0)