Skip to content

Commit d7fa39b

Browse files
committed
Fix emscripten runner process exit code
1 parent e3fab07 commit d7fa39b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

emscripten/runner.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const testDir = pkgDir + "/tests";
8282
async function main() {
8383
const wheelName = await findWheel(distDir);
8484
const wheelURL = `file:${distDir}/${wheelName}`;
85+
let errcode = 1;
8586

8687
try {
8788
pyodide = await loadPyodide();
@@ -94,11 +95,12 @@ async function main() {
9495
const micropip = pyodide.pyimport("micropip");
9596
await micropip.install(wheelURL);
9697
const pytest = pyodide.pyimport("pytest");
97-
errcode = pytest.main(pyodide.toPy(["/test_dir", "-vv"]));
98+
errcode = pytest.main(pyodide.toPy(["/test_dir"]));
9899
} catch (e) {
99100
console.error(e);
100101
process.exit(1);
101102
}
103+
process.exit(errcode);
102104
}
103105

104106
main();

0 commit comments

Comments
 (0)