Skip to content

Commit d566069

Browse files
committed
Improve error handling in AOT compilation process in runtest.py
1 parent d29a715 commit d566069

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,11 +1541,10 @@ def recently_added_wasm(temp_file_repo):
15411541

15421542
if test_aot:
15431543
new_module_aot = os.path.join(tempfile.gettempdir(), name_new + ".aot")
1544-
r = compile_wasm_to_aot(new_module, new_module_aot, True, opts, r)
15451544
try:
1546-
assert_prompt(r, ['Compile success'], opts.start_timeout, True)
1547-
except:
1548-
raise Exception("compile wasm to aot failed")
1545+
compile_wasm_to_aot(new_module, new_module_aot, None, opts, r)
1546+
except Exception as e:
1547+
raise Exception(f"compile wasm to aot failed. {e}")
15491548
# add aot module into temp_file_repo[]
15501549
temp_file_repo.append(new_module_aot)
15511550
else:

0 commit comments

Comments
 (0)