summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-11-14 13:42:52 -0800
committerGitHub <noreply@github.com>2023-11-14 13:42:52 -0800
commit77facb13f716742eb008eb73325efc0410d286d2 (patch)
tree0ecec71e1dfa4d813cde641debf2a961d1502e0a /test
parent1c3a5be545299f289f17edada8620941376a3e00 (diff)
downloadbinaryen-77facb13f716742eb008eb73325efc0410d286d2.tar.gz
binaryen-77facb13f716742eb008eb73325efc0410d286d2.tar.bz2
binaryen-77facb13f716742eb008eb73325efc0410d286d2.zip
Remove various testing spam (#6109)
Avoid some common warnings and stop printing various stdout/stderr stuff. Helps #6104
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_asyncify.py2
-rw-r--r--test/unit/test_passes.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/test/unit/test_asyncify.py b/test/unit/test_asyncify.py
index 81763b051..c9e0364be 100644
--- a/test/unit/test_asyncify.py
+++ b/test/unit/test_asyncify.py
@@ -15,7 +15,7 @@ class AsyncifyTest(utils.BinaryenTestCase):
shared.run_process(shared.WASM_OPT + args + [self.input_path('asyncify-stackOverflow.wat'), '--asyncify', '-o', 'c.wasm'])
print(' file size: %d' % os.path.getsize('a.wasm'))
if shared.NODEJS:
- shared.run_process([shared.NODEJS, self.input_path('asyncify.js')])
+ shared.run_process([shared.NODEJS, self.input_path('asyncify.js')], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
test(['-g'])
test([])
diff --git a/test/unit/test_passes.py b/test/unit/test_passes.py
index 5f91afa92..838f1d2f7 100644
--- a/test/unit/test_passes.py
+++ b/test/unit/test_passes.py
@@ -13,7 +13,6 @@ class PassesTest(utils.BinaryenTestCase):
hello_wat = self.input_path('hello_world.wat')
log = shared.run_process(shared.WASM_OPT + [hello_wat] + args,
stderr=subprocess.PIPE).stderr
- print(log)
passes = re.findall(r'running pass: ([\w-]+)\.\.\.', log)
return passes
finally: