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

SoakTest.py « scripts - github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 30dddc5f9e4027efdb97ea64dc316630674003db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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