Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions scripts/test/wasm_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import os
import shutil
import subprocess
import sys

from . import shared, support

Expand Down Expand Up @@ -60,6 +61,12 @@ def test_wasm_opt():
opts = [('--' + p if not p.startswith('O') and p != 'g' else '-' + p) for p in passes]
actual = ''
for module, asserts in support.split_wast(t):
# Flush stdout/stderr between each test. This prevent confusing
# interleaving in output of github CI
# TODO: Find a better, more systematic way to achieve this that
# works for all test suites.
sys.stdout.flush()
sys.stderr.flush()
assert len(asserts) == 0
support.write_wast('split.wast', module)
cmd = shared.WASM_OPT + opts + ['split.wast', '-q']
Expand Down
Loading