2018-12-05 18:53:33 -05:00
|
|
|
#!/usr/bin/env xonsh
|
2019-04-29 17:07:09 +09:00
|
|
|
import sys
|
|
|
|
args = sys.argv[1:]
|
|
|
|
|
|
|
|
|
|
|
|
def replace_args(num):
|
|
|
|
"""
|
|
|
|
Replace %d to num for avoid overwrite files
|
|
|
|
|
|
|
|
Example of args: --junitxml=junit/test-results.%d.xml
|
|
|
|
"""
|
|
|
|
return [
|
|
|
|
(arg % num) if "%d" in arg else arg
|
|
|
|
for arg in args]
|
|
|
|
|
2018-12-05 18:53:33 -05:00
|
|
|
$RAISE_SUBPROC_ERROR = True
|
|
|
|
|
|
|
|
run_separately = [
|
2019-06-18 16:27:40 -04:00
|
|
|
#'tests/test_main.py',
|
2018-12-05 18:53:33 -05:00
|
|
|
'tests/test_ptk_highlight.py',
|
|
|
|
]
|
2019-05-31 14:48:16 -04:00
|
|
|
ignores = []
|
|
|
|
for fname in run_separately:
|
|
|
|
ignores.append('--ignore')
|
|
|
|
ignores.append(fname)
|
2019-06-18 16:27:40 -04:00
|
|
|
![pytest --assert=plain @(replace_args(0)) @(ignores)]
|
2019-04-29 17:07:09 +09:00
|
|
|
for index, fname in enumerate(run_separately):
|
2019-06-18 16:27:40 -04:00
|
|
|
![pytest --assert=plain @(replace_args(index+1)) @(fname)]
|