Statistics
| Branch: | Revision:

nepatest_popbabel / autoTimeRouter.py @ 60ba786f

History | View | Annotate | Download (637 Bytes)

1
from subprocess import Popen, PIPE
2
import glob
3
import sys
4
from time import sleep
5
import datetime
6

    
7
if __name__ == '__main__':
8
        folder=sys.argv[1]
9
        start=datetime.datetime.now()
10
        print "RT dump analysis of "+folder
11
        for subf in glob.glob(folder+'h*run*'):
12
                if not glob.glob(subf+'/*results.csv'):
13
                        print "Processing ",subf
14
                        outfile=open(subf+"/out.txt", 'w')
15
                        p = Popen(["python", "fasttimerouter.py", subf+"/"], stdout=outfile)
16
                        while p.poll() is None:
17
                                now=datetime.datetime.now()
18
                                print "running from", (now-start), subf
19
                                sleep(5)
20
                        rc = p.returncode
21
                        outfile.close()
22
        print "IT'S OVER!!!", datetime.datetime.now()