Skip to content

Commit

Permalink
test: fail fast for wasm test
Browse files Browse the repository at this point in the history
Signed-off-by: Zxilly <[email protected]>
  • Loading branch information
Zxilly committed Jun 17, 2024
1 parent bface09 commit d9e5623
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ def run_unit_tests():
):
del env[k]

env_size = 0
for k, v in env.items():
env_size += len(k) + len(v) + 1
if env_size > 8192:
log("Environment size is too large")
for k, v in env.items():
print(f"{k}={v}")
exit(1)

wasmbrowsertest = shutil.which("wasmbrowsertest")
if wasmbrowsertest is None:
raise Exception("wasmbrowsertest is not installed. Please install wasmbrowsertest and try again.")
Expand Down

0 comments on commit d9e5623

Please sign in to comment.