Last change
on this file since 8439 was
8439,
checked in by gray, 12 years ago
|
Fix so produce_results keeps on working if it can not delete a .svn directory.
|
File size:
887 bytes
|
Line | |
---|
1 | """ |
---|
2 | Script to run all the produce_results scripts in the Tests/xxx/xxx/ directories |
---|
3 | """ |
---|
4 | |
---|
5 | import os |
---|
6 | |
---|
7 | buildroot = os.getcwd() |
---|
8 | |
---|
9 | Upper_dirs = os.listdir('./Tests') |
---|
10 | #print Upper_dirs |
---|
11 | try: |
---|
12 | Upper_dirs.remove('.svn') |
---|
13 | except ValueError: |
---|
14 | pass |
---|
15 | #print Upper_dirs |
---|
16 | os.chdir('./Tests') |
---|
17 | |
---|
18 | for dir in Upper_dirs: |
---|
19 | |
---|
20 | os.chdir(dir) |
---|
21 | #print 'Changing to', os.getcwd() |
---|
22 | Lower_dirs = os.listdir('.') |
---|
23 | try: |
---|
24 | Lower_dirs.remove('.svn') |
---|
25 | except ValueError: |
---|
26 | pass |
---|
27 | #print Lower_dirs |
---|
28 | for l_dir in Lower_dirs: |
---|
29 | os.chdir(l_dir) |
---|
30 | print 'Changing to', os.getcwd() |
---|
31 | try: |
---|
32 | os.system('python produce_results.py') |
---|
33 | except: |
---|
34 | print 'Failed running produce_results in '+os.getcwd() |
---|
35 | pass |
---|
36 | |
---|
37 | os.chdir('..') |
---|
38 | #print 'Changing to', os.getcwd() |
---|
39 | |
---|
40 | os.chdir('..') |
---|
41 | #print 'Changing to', os.getcwd() |
---|
42 | |
---|
43 | |
---|
44 | |
---|
Note: See
TracBrowser
for help on using the repository browser.