some error handling in regression test script

This commit is contained in:
Arvid Norberg 2014-03-30 20:13:42 +00:00
parent dedc21f8c8
commit 0ad4e53ad5
2 changed files with 10 additions and 6 deletions

View File

@ -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()

View File

@ -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