mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-09 13:16:26 +00:00
wamr-test-suites: Clean up generated tmp files after spec test (#3700)
Add all possible generated tmp files to the list, those not actually generated will be simply ignored in the deletion process.
This commit is contained in:
parent
da31c079b2
commit
4e31bd63b7
|
@ -572,6 +572,7 @@ def main():
|
||||||
if options.parl_flag:
|
if options.parl_flag:
|
||||||
# several cases might share the same workspace/tempfile at the same time
|
# several cases might share the same workspace/tempfile at the same time
|
||||||
# so, disable it while running parallelly
|
# so, disable it while running parallelly
|
||||||
|
if options.multi_module_flag:
|
||||||
options.clean_up_flag = False
|
options.clean_up_flag = False
|
||||||
options.verbose_flag = False
|
options.verbose_flag = False
|
||||||
|
|
||||||
|
|
|
@ -1307,6 +1307,12 @@ if __name__ == "__main__":
|
||||||
wasm_tempfile = create_tmp_file(".wasm")
|
wasm_tempfile = create_tmp_file(".wasm")
|
||||||
if test_aot:
|
if test_aot:
|
||||||
aot_tempfile = create_tmp_file(".aot")
|
aot_tempfile = create_tmp_file(".aot")
|
||||||
|
# could be potientially compiled to aot
|
||||||
|
# with the future following call test_assert_xxx,
|
||||||
|
# add them to temp_file_repo now even if no actual following file,
|
||||||
|
# it will be simple ignore during final deletion if not exist
|
||||||
|
prefix = wasm_tempfile.split(".wasm")[0]
|
||||||
|
temp_file_repo.append(prefix + ".aot")
|
||||||
|
|
||||||
ret_code = 0
|
ret_code = 0
|
||||||
try:
|
try:
|
||||||
|
@ -1429,6 +1435,12 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
if test_aot:
|
if test_aot:
|
||||||
r = compile_wasm_to_aot(temp_files[1], temp_files[2], True, opts, r)
|
r = compile_wasm_to_aot(temp_files[1], temp_files[2], True, opts, r)
|
||||||
|
# could be potientially compiled to aot
|
||||||
|
# with the future following call test_assert_xxx,
|
||||||
|
# add them to temp_file_repo now even if no actual following file,
|
||||||
|
# it will be simple ignore during final deletion if not exist
|
||||||
|
prefix = temp_files[1].split(".wasm")[0]
|
||||||
|
temp_file_repo.append(prefix + ".aot")
|
||||||
try:
|
try:
|
||||||
assert_prompt(r, ['Compile success'], opts.start_timeout, False)
|
assert_prompt(r, ['Compile success'], opts.start_timeout, False)
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user