Skip to content

Commit

Permalink
Try setting -s on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Nov 11, 2023
1 parent 29096fe commit 4ad399b
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions stestr/config_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,27 @@ def get_run_command(
"specified in the config file."
)
if pytest:
command = (
'%s -m pytest --subunit --rootdir="%s" "%s" '
"$LISTOPT $IDOPTION"
% (
python,
top_dir,
test_path,
if sys.platform == "win32":
command = (

Check warning on line 220 in stestr/config_file.py

View check run for this annotation

Codecov / codecov/patch

stestr/config_file.py#L220

Added line #L220 was not covered by tests
'%s -m pytest -s --subunit --rootdir="%s" "%s" '
"$LISTOPT $IDOPTION"
% (
python,
top_dir,
test_path,
)
)

else:
command = (
'%s -m pytest --subunit --rootdir="%s" "%s" '
"$LISTOPT $IDOPTION"
% (
python,
top_dir,
test_path,
)
)
)
listopt = "--co"
idoption = "--load-list $IDFILE"
else:
Expand Down

0 comments on commit 4ad399b

Please sign in to comment.