Skip to content

Commit 499e674

Browse files
committed
wasm2c: allow test script to specify a runner app
This is useful to specify debuggers, launch the tests in qemu emulators for different platforms etc.
1 parent d58b169 commit 499e674

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/run-spec-wasm2c.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,8 @@ def main(args):
665665

666666
# Run the resulting binary
667667
if options.run:
668-
return subprocess.run([main_exe]).returncode
668+
test_runner = os.getenv('WASM2C_TEST_RUNNER', '').split()
669+
return subprocess.run(test_runner + [main_exe]).returncode
669670
return 0
670671

671672

0 commit comments

Comments
 (0)