test for x86 adjusted to skip if executable not present

This commit is contained in:
Nicolas 2025-12-24 14:22:50 +01:00
parent aacdc9b676
commit 2c2d7ca960
1 changed files with 6 additions and 1 deletions

View File

@ -209,7 +209,12 @@ def test_vector_compile():
warnings.warn(f"Test skipped, {platform.machine()} not supported for this test.", UserWarning)
else:
command = ['build/runner/coparun-x86', 'build/runner/test-x86.copapy', 'build/runner/test-x86.copapy.bin']
try:
result = run_command(command)
except FileNotFoundError:
warnings.warn("Test skipped, executable not found.", UserWarning)
return
print('* Output from runner:\n--')
print(result)
print('--')