From 4ad399b6116a88f32cb5bc28e8115fe1aab2de93 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Sat, 11 Nov 2023 13:54:30 -0500 Subject: [PATCH] Try setting -s on windows --- stestr/config_file.py | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/stestr/config_file.py b/stestr/config_file.py index a526aed..5d21617 100644 --- a/stestr/config_file.py +++ b/stestr/config_file.py @@ -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 = ( + '%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: