Skip to content

Commit 6ea000a

Browse files
committed
Update "sbase gui" / "sbase commander" settings
1 parent b539039 commit 6ea000a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

seleniumbase/console_scripts/sb_commander.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ def do_pytest_run(
156156
if save_screenshots:
157157
full_run_command += " --screenshot"
158158

159-
dash_s_needed = False
160-
if "-s" not in additional_options.split(" "):
161-
dash_s_needed = True
159+
capture_needed = False
160+
if "--capture" not in additional_options:
161+
capture_needed = True
162162

163163
additional_options = additional_options.strip()
164164
if additional_options:
@@ -168,8 +168,8 @@ def do_pytest_run(
168168
if verbose:
169169
full_run_command += " -v"
170170

171-
if dash_s_needed:
172-
full_run_command += " -s"
171+
if capture_needed:
172+
full_run_command += " --capture=tee-sys"
173173

174174
print(full_run_command)
175175
subprocess.Popen(full_run_command, shell=True)

0 commit comments

Comments
 (0)