Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/SoakTest.py')
-rwxr-xr-xscripts/SoakTest.py16
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
+