put the regression test report in a separate directory
This commit is contained in:
@@ -194,9 +194,9 @@ project_name = 'libtorrent'
|
|||||||
# maps branch name to latest rev
|
# maps branch name to latest rev
|
||||||
revs = {}
|
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:
|
try:
|
||||||
branch = rev.split('-')[0]
|
branch = rev.split('-')[0]
|
||||||
if branch == 'logs': continue
|
if branch == 'logs': continue
|
||||||
@@ -217,6 +217,11 @@ print 'latest versions'
|
|||||||
for b in revs:
|
for b in revs:
|
||||||
print '%s\t%d' % (b, revs[b])
|
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:
|
for branch_name in revs:
|
||||||
|
|
||||||
latest_rev = revs[branch_name]
|
latest_rev = revs[branch_name]
|
||||||
@@ -247,7 +252,7 @@ for branch_name in revs:
|
|||||||
sys.stdout.write('.')
|
sys.stdout.write('.')
|
||||||
sys.stdout.flush()
|
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)
|
(platforms, tests) = parse_tests(rev_dir)
|
||||||
|
|
||||||
if len(tests) + len(platforms) == 0: continue
|
if len(tests) + len(platforms) == 0: continue
|
||||||
|
Reference in New Issue
Block a user