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 = [
|
|
|
|
'tests/test_ptk_highlight.py',
|
|
|
|
]
|
|
|
|
|
2019-04-29 17:07:09 +09:00
|
|
|
![pytest @(replace_args(0)) --ignore @(run_separately)]
|
|
|
|
for index, fname in enumerate(run_separately):
|
|
|
|
![pytest @(replace_args(index+1)) @(fname)]
|