Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

#!/usr/bin/python 

 

import sys, os, datetime, time 

 

def shellquote(arg): 

    return '"%s"' % arg.replace('"', '\\"') 

 

def pread(cmdlist): 

    fd = os.popen("%s &" % \ 

                  (' '.join([shellquote(arg) for arg in cmdlist]))) 

    return 

 

t = datetime.datetime.now() 

LOGBASE = "/tmp/SR-testlog-%d" % time.mktime(t.timetuple()) 

print "FILE: [%s]" % LOGBASE 

script_args = sys.argv 

script_args[0] = './test_stress_fs.sh' 

 

print "Calling args: [%s]" % script_args 

for i in range(0,2): 

    LOGFILE="%s-%d" % (LOGBASE, i) 

    print "\tCalling stress_test (%d), logfile %s" % (i, LOGFILE) 

    script_args.append("DEBUG_FILE=%s" % LOGFILE) 

    pread(script_args) 

    time.sleep(20)