Skip to content

Commit

Permalink
test: provide stdin by ourselves
Browse files Browse the repository at this point in the history
to workaround github runners stdin issues
  • Loading branch information
yamt committed Apr 17, 2023
1 parent e7ed965 commit 570e670
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/pipe.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#! /usr/bin/env python3

# keep stdout open until the peer closes it

import sys
import select

p = select.poll()
p.register(sys.stdout, select.POLLHUP)
p.poll(-1)
1 change: 1 addition & 0 deletions test/run-wasi-testsuite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ done
virtualenv venv
. ./venv/bin/activate
python3 -m pip install -r ${DIR}/test-runner/requirements.txt
python3 test/pipe.py |
python3 ${DIR}/test-runner/wasi_test_runner.py \
-t ${TESTDIRS} \
${FILTER_OPTIONS} \
Expand Down

0 comments on commit 570e670

Please sign in to comment.