Skip to content

Commit 550c361

Browse files
authored
Merge pull request #19 from aaltat/individual_reports
Make reports filename to contain Python version
2 parents 14cbeea + 457728d commit 550c361

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

atest/run.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env python
22

33
from __future__ import print_function
4+
5+
import platform
46
from os.path import abspath, dirname, join
57
import sys
68

@@ -13,16 +15,18 @@
1315
outdir = join(curdir, 'results')
1416
tests = join(curdir, 'tests.robot')
1517
sys.path.insert(0, join(curdir, '..', 'src'))
18+
python_version = platform.python_version()
1619
for variant in library_variants:
17-
output = join(outdir, variant + '.xml')
20+
output = join(outdir, '%s-%s.xml' % (variant, python_version))
1821
rc = run(tests, name=variant, variable='LIBRARY:%sLibrary' % variant,
1922
output=output, report=None, log=None)
2023
if rc > 250:
2124
sys.exit(rc)
2225
process_output(output, verbose=False)
2326
print('\nCombining results.')
24-
rc = rebot(*(join(outdir, variant + '.xml') for variant in library_variants),
25-
**dict(name='Acceptance Tests', outputdir=outdir))
27+
rc = rebot(*(join(outdir, '%s-%s.xml' % (variant, python_version)) for variant in library_variants),
28+
**dict(name='Acceptance Tests', outputdir=outdir, log='log-%s.html' % python_version,
29+
report='report-%s.html' % python_version))
2630
if rc == 0:
2731
print('\nAll tests passed/failed as expected.')
2832
else:

0 commit comments

Comments
 (0)