some error handling in regression test script
This commit is contained in:
parent
dedc21f8c8
commit
0ad4e53ad5
|
@ -137,6 +137,7 @@ def loop():
|
|||
print '\n\nREVISION %d ===\n' % r
|
||||
svn_up(r)
|
||||
|
||||
try:
|
||||
run_tests.main(sys.argv[1:])
|
||||
last_rev = r;
|
||||
|
||||
|
@ -144,6 +145,8 @@ def loop():
|
|||
revs = revs[1:]
|
||||
|
||||
open(rev_file, 'w+').write('%d' % last_rev)
|
||||
except Exception, e:
|
||||
print e
|
||||
|
||||
if __name__ == "__main__":
|
||||
loop()
|
||||
|
|
|
@ -331,7 +331,8 @@ def main(argv):
|
|||
# each file contains a full set of tests for one speific toolset and platform
|
||||
try:
|
||||
f = open(os.path.join(rev_dir, build_platform + '#' + toolset + '.json'), 'w+')
|
||||
except IOError:
|
||||
except IOError, e:
|
||||
print e
|
||||
rev_dir = os.path.join(current_dir, 'regression_tests')
|
||||
try: os.mkdir(rev_dir)
|
||||
except: pass
|
||||
|
|
Loading…
Reference in New Issue