one more svn fix in regression tests

This commit is contained in:
Arvid Norberg 2013-10-06 16:57:04 +00:00
parent fdbe37ea39
commit 9f50662c92
1 changed files with 6 additions and 8 deletions

View File

@ -106,15 +106,13 @@ def loop():
rev_file = os.path.join(os.getcwd(), '.rev') rev_file = os.path.join(os.getcwd(), '.rev')
if skip: if skip:
sys.argv.remove('-s') sys.argv.remove('-s')
last_rev = run_tests.svn_info()[0] - 1 print 'restoring last state from "%s"' % rev_file
else:
print 'restoring last state from "%s"' % rev_file
try: try:
last_rev = int(open(rev_file, 'r').read()) last_rev = int(open(rev_file, 'r').read())
except: except:
last_rev = run_tests.svn_info()[0] - 1 last_rev = run_tests.svn_info()[0] - 1
open(rev_file, 'w+').write('%d' % last_rev) open(rev_file, 'w+').write('%d' % last_rev)
revs = [] revs = []