diff options
Diffstat (limited to 'scripts/SoakTest.py')
-rwxr-xr-x | scripts/SoakTest.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/SoakTest.py b/scripts/SoakTest.py new file mode 100755 index 00000000..30dddc5f --- /dev/null +++ b/scripts/SoakTest.py @@ -0,0 +1,16 @@ +#!/usr/bin/python +# Repeatedly runs a process until it crashes +# (C) 2014 Niall Douglas +# File created: Feb 2014 + +import subprocess, sys + +if len(sys.argv)<2: + raise Exception("Need to specify a process to run!") + +n=1 +while True: + print("\n"+str(n)+": Running process "+sys.argv[1]+" ...") + subprocess.check_call(sys.argv[1]) + n=n+1 + |