Pārlūkot izejas kodu

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.
YAMAMOTO Takashi 1 gadu atpakaļ
vecāks
revīzija
7c9686df5f

+ 4 - 1
tests/wamr-test-suites/spec-test-script/runtest.py

@@ -1161,7 +1161,10 @@ def run_wasm_with_repl(wasm_tempfile, aot_tempfile, opts, r):
     if opts.qemu:
     if opts.qemu:
         tmpfile = f"/tmp/{os.path.basename(tmpfile)}"
         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:
     if opts.multi_module:
         cmd_iwasm.insert(1, "--module-path=" + (tempfile.gettempdir() if not opts.qemu else "/tmp" ))
         cmd_iwasm.insert(1, "--module-path=" + (tempfile.gettempdir() if not opts.qemu else "/tmp" ))