some error handling in regression test script
This commit is contained in:
parent
dedc21f8c8
commit
0ad4e53ad5
|
@ -137,13 +137,16 @@ def loop():
|
|||
print '\n\nREVISION %d ===\n' % r
|
||||
svn_up(r)
|
||||
|
||||
run_tests.main(sys.argv[1:])
|
||||
last_rev = r;
|
||||
try:
|
||||
run_tests.main(sys.argv[1:])
|
||||
last_rev = r;
|
||||
|
||||
# pop the revision we just completed
|
||||
revs = revs[1:]
|
||||
# pop the revision we just completed
|
||||
revs = revs[1:]
|
||||
|
||||
open(rev_file, 'w+').write('%d' % last_rev)
|
||||
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