Skip to content

Commit 4ad399b

Browse files
committed
Try setting -s on windows
1 parent 29096fe commit 4ad399b

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

stestr/config_file.py

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,15 +216,27 @@ def get_run_command(
216216
"specified in the config file."
217217
)
218218
if pytest:
219-
command = (
220-
'%s -m pytest --subunit --rootdir="%s" "%s" '
221-
"$LISTOPT $IDOPTION"
222-
% (
223-
python,
224-
top_dir,
225-
test_path,
219+
if sys.platform == "win32":
220+
command = (
221+
'%s -m pytest -s --subunit --rootdir="%s" "%s" '
222+
"$LISTOPT $IDOPTION"
223+
% (
224+
python,
225+
top_dir,
226+
test_path,
227+
)
228+
)
229+
230+
else:
231+
command = (
232+
'%s -m pytest --subunit --rootdir="%s" "%s" '
233+
"$LISTOPT $IDOPTION"
234+
% (
235+
python,
236+
top_dir,
237+
test_path,
238+
)
226239
)
227-
)
228240
listopt = "--co"
229241
idoption = "--load-list $IDFILE"
230242
else:

0 commit comments

Comments
 (0)