|
1 | 1 | #!/usr/bin/env python |
2 | 2 |
|
3 | | -from __future__ import print_function |
4 | 3 |
|
5 | 4 | import platform |
6 | 5 | from os.path import abspath, dirname, join |
|
19 | 18 | sys.path.insert(0, join(curdir, '..', 'src')) |
20 | 19 | python_version = platform.python_version() |
21 | 20 | for variant in library_variants: |
22 | | - output = join(outdir, 'lib-%s-python-%s-robot-%s.xml' % (variant, python_version, rf_version)) |
| 21 | + output = join(outdir, 'lib-{}-python-{}-robot-{}.xml'.format(variant, python_version, rf_version)) |
23 | 22 | rc = run(tests, name=variant, variable='LIBRARY:%sLibrary' % variant, |
24 | 23 | output=output, report=None, log=None, loglevel='debug') |
25 | 24 | if rc > 250: |
26 | 25 | sys.exit(rc) |
27 | 26 | process_output(output, verbose=False) |
28 | | -output = join(outdir, 'lib-DynamicTypesLibrary-python-%s-robot-%s.xml' % (python_version, rf_version)) |
| 27 | +output = join(outdir, 'lib-DynamicTypesLibrary-python-{}-robot-{}.xml'.format(python_version, rf_version)) |
29 | 28 | rc = run(tests_types, name='Types', output=output, report=None, log=None, loglevel='debug') |
30 | 29 | if rc > 250: |
31 | 30 | sys.exit(rc) |
32 | 31 | process_output(output, verbose=False) |
33 | 32 | print('\nCombining results.') |
34 | 33 | library_variants.append('DynamicTypesLibrary') |
35 | | -rc = rebot(*(join(outdir, 'lib-%s-python-%s-robot-%s.xml' % (variant, python_version, rf_version)) for variant in library_variants), |
36 | | - **dict(name='Acceptance Tests', outputdir=outdir, log='log-python-%s-robot-%s.html' % (python_version, rf_version), |
37 | | - report='report-python-%s-robot-%s.html' % (python_version, rf_version))) |
| 34 | +rc = rebot(*(join(outdir, 'lib-{}-python-{}-robot-{}.xml'.format(variant, python_version, rf_version)) for variant in library_variants), |
| 35 | + **dict(name='Acceptance Tests', outputdir=outdir, log='log-python-{}-robot-{}.html'.format(python_version, rf_version), |
| 36 | + report='report-python-{}-robot-{}.html'.format(python_version, rf_version))) |
38 | 37 | if rc == 0: |
39 | 38 | print('\nAll tests passed/failed as expected.') |
40 | 39 | else: |
|
0 commit comments