File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
seleniumbase/console_scripts Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments