Fix issue that prevents running tests with SB Commander

This commit is contained in:
Michael Mintz 2023-03-04 20:45:32 -05:00
parent 3a61fa67f4
commit 2579389902
1 changed files with 6 additions and 1 deletions

View File

@ -93,7 +93,12 @@ def do_pytest_run(
for test_number, test in enumerate(tests):
if selected_tests[test_number].get():
full_run_command += " "
full_run_command += test
if ' ' not in test:
full_run_command += test
elif '"' not in test:
full_run_command += '"%s"' % test
else:
full_run_command += test.replace(" ", "\\ ")
if "(--edge)" in browser_string:
full_run_command += " --edge"