Skip to content

Commit

Permalink
test: Don't distinguish between wasi, wasip1 to use OS=wasi condition
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kateinoigakukun committed Mar 29, 2024
1 parent 20f6823 commit 9bb3b02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,11 @@ if run_vers.endswith('-simulator'):
else:
run_environment=''

# Don't distinguish between wasi, wasip1, and so on to use OS=wasi condition in
# the test suites.
if run_os.startswith('wasi'):
run_os = 'wasi'

# Parse the host triple
(host_cpu, host_vendor, host_os, host_vers) = re.match('([^-]+)-([^-]+)-([^0-9-]+)(.*)', config.host_triple).groups()

Expand Down

0 comments on commit 9bb3b02

Please sign in to comment.