Created
April 14, 2015 11:50
-
-
Save reynir/6616b43999449f26d299 to your computer and use it in GitHub Desktop.
ptyprocess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ptyprocess import PtyProcess | |
p = PtyProcess.spawn(["/bin/true"]) | |
p.wait() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
failed=0 | |
for i in `seq 100`; do | |
if ! python test.py >/dev/null 2>/dev/null; then | |
failed=$(($failed+1)) | |
fi | |
done | |
echo "Test script failed $failed times" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ ./test.sh
Test script failed 11 times