Skip to content

Commit 65ec631

Browse files
committed
Refresh
dependencies per-test to ensure clean CI environment
1 parent 136eeb4 commit 65ec631

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/wasmtestreport.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,13 @@ def run_compiled_wasm(wasm_file, timeout_sec=DEFAULT_TIMEOUT):
448448
def test_single_file_unified(source_file, result, timeout_sec=DEFAULT_TIMEOUT, test_mode="deterministic"):
449449
"""Unified test function for both deterministic and non-deterministic tests"""
450450
source_file = Path(source_file)
451+
452+
# Refresh runtime dependencies so exec helpers and testfiles exist even in clean CI runs
453+
try:
454+
pre_test([source_file])
455+
except Exception as dep_err:
456+
logger.warning(f"Failed to refresh runtime dependencies for {source_file}: {dep_err}")
457+
451458
handler = TestResultHandler(result, source_file)
452459

453460
# For deterministic tests, get expected output

0 commit comments

Comments
 (0)