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: