Skip to content

Commit 62ce409

Browse files
committed
fix(runtest.py): Add early return for non-loadable AOT compilation to prevent unnecessary assertions
1 parent c94863a commit 62ce409

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,9 @@ def test_assert_with_exception(form, wast_tempfile, wasm_tempfile, aot_tempfile,
12631263

12641264
if test_aot:
12651265
r = compile_wasm_to_aot(wasm_tempfile, aot_tempfile, True, opts, r)
1266+
if not loadable:
1267+
return
1268+
12661269
try:
12671270
assert_prompt(r, ['Compile success'], opts.start_fail_timeout, True)
12681271
except:
@@ -1563,8 +1566,6 @@ def test_assert_with_exception(form, wast_tempfile, wasm_tempfile, aot_tempfile,
15631566
if(len(str(t))!=0 and os.path.exists(t)):
15641567
log(f"Removing others {t}")
15651568
os.remove(t)
1566-
1567-
log("### End testing %s" % opts.test_file.name)
15681569
else:
15691570
log("Leaving tempfiles: %s" % ([wast_tempfile, wasm_tempfile]))
15701571

0 commit comments

Comments
 (0)