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')
if skip:
sys.argv.remove('-s')
last_rev = run_tests.svn_info()[0] - 1
else:
print 'restoring last state from "%s"' % rev_file
print 'restoring last state from "%s"' % rev_file
try:
last_rev = int(open(rev_file, 'r').read())
except:
last_rev = run_tests.svn_info()[0] - 1
open(rev_file, 'w+').write('%d' % last_rev)
try:
last_rev = int(open(rev_file, 'r').read())
except:
last_rev = run_tests.svn_info()[0] - 1
open(rev_file, 'w+').write('%d' % last_rev)
revs = []