Skip to content

Commit 2579389

Browse files
committed
Fix issue that prevents running tests with SB Commander
1 parent 3a61fa6 commit 2579389

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

seleniumbase/console_scripts/sb_commander.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ def do_pytest_run(
9393
for test_number, test in enumerate(tests):
9494
if selected_tests[test_number].get():
9595
full_run_command += " "
96-
full_run_command += test
96+
if ' ' not in test:
97+
full_run_command += test
98+
elif '"' not in test:
99+
full_run_command += '"%s"' % test
100+
else:
101+
full_run_command += test.replace(" ", "\\ ")
97102

98103
if "(--edge)" in browser_string:
99104
full_run_command += " --edge"

0 commit comments

Comments
 (0)