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.
This commit is contained in:
YAMAMOTO Takashi 2024-07-18 15:49:57 +09:00 committed by GitHub
parent 2b5b771537
commit 7c9686df5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1161,7 +1161,10 @@ def run_wasm_with_repl(wasm_tempfile, aot_tempfile, opts, r):
if opts.qemu:
tmpfile = f"/tmp/{os.path.basename(tmpfile)}"
cmd_iwasm = [opts.interpreter, "--heap-size=0", "-v=5" if opts.verbose else "-v=0", "--repl", tmpfile]
if opts.verbose:
cmd_iwasm = [opts.interpreter, "--heap-size=0", "-v=5", "--repl", tmpfile]
else:
cmd_iwasm = [opts.interpreter, "--heap-size=0", "--repl", tmpfile]
if opts.multi_module:
cmd_iwasm.insert(1, "--module-path=" + (tempfile.gettempdir() if not opts.qemu else "/tmp" ))