put the regression test report in a separate directory

This commit is contained in:
Arvid Norberg 2014-03-30 20:08:20 +00:00
parent 476c36b9c8
commit 6b39247d2f
1 changed files with 8 additions and 3 deletions

View File

@ -194,9 +194,9 @@ project_name = 'libtorrent'
# maps branch name to latest rev
revs = {}
os.chdir('regression_tests')
input_dir = os.path.abspath('regression_tests')
for rev in os.listdir('.'):
for rev in os.listdir(input_dir):
try:
branch = rev.split('-')[0]
if branch == 'logs': continue
@ -217,6 +217,11 @@ print 'latest versions'
for b in revs:
print '%s\t%d' % (b, revs[b])
try: os.mkdir('regression_test_report')
except: pass
os.chdir('regression_test_report')
for branch_name in revs:
latest_rev = revs[branch_name]
@ -247,7 +252,7 @@ for branch_name in revs:
sys.stdout.write('.')
sys.stdout.flush()
rev_dir = '%s-%d' % (branch_name, r)
rev_dir = os.path.join(input_dir, '%s-%d' % (branch_name, r))
(platforms, tests) = parse_tests(rev_dir)
if len(tests) + len(platforms) == 0: continue