Skip to content

Commit e73bc12

Browse files
test: Don't distinguish between wasi, wasip1 to use OS=wasi condition
We already have several uses of `OS=wasi` in the test suites, and the condition should match all the wasi targets regardless of the version.
1 parent c8b1dc7 commit e73bc12

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/lit.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,11 @@ if run_vers.endswith('-simulator'):
400400
else:
401401
run_environment=''
402402

403+
# Don't distinguish between wasi, wasip1, and so on to use OS=wasi condition in
404+
# the test suites.
405+
if run_os.startswith('wasi'):
406+
run_os = 'wasi'
407+
403408
# Parse the host triple
404409
(host_cpu, host_vendor, host_os, host_vers) = re.match('([^-]+)-([^-]+)-([^0-9-]+)(.*)', config.host_triple).groups()
405410

0 commit comments

Comments
 (0)