Skip to content

Commit 7c9686d

Browse files
authored
spec-test-script/runtest.py: Avoid specifying -v=0 unnecessarily (#3642)
The -v=n option is not always available. Note: WASM_ENABLE_LOG is off by default on NuttX.
1 parent 2b5b771 commit 7c9686d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/wamr-test-suites/spec-test-script/runtest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,10 @@ def run_wasm_with_repl(wasm_tempfile, aot_tempfile, opts, r):
11611161
if opts.qemu:
11621162
tmpfile = f"/tmp/{os.path.basename(tmpfile)}"
11631163

1164-
cmd_iwasm = [opts.interpreter, "--heap-size=0", "-v=5" if opts.verbose else "-v=0", "--repl", tmpfile]
1164+
if opts.verbose:
1165+
cmd_iwasm = [opts.interpreter, "--heap-size=0", "-v=5", "--repl", tmpfile]
1166+
else:
1167+
cmd_iwasm = [opts.interpreter, "--heap-size=0", "--repl", tmpfile]
11651168

11661169
if opts.multi_module:
11671170
cmd_iwasm.insert(1, "--module-path=" + (tempfile.gettempdir() if not opts.qemu else "/tmp" ))

0 commit comments

Comments
 (0)