Commit 49fdd76
authored
Add -wait-for-browser for Linux and macOS as well. (#25658)
In previous PR #25644
I added `-wait-for-browser` use on Windows to help single-threaded
Windows runner not leave behind stale browser windows.
For some reason, it was not passing on CircleCI on Linux. Testing this
again to see what the failure is.
In local testing with a test script:
```py
import subprocess, sys, time
cmd = ['C:\\Program Files\\Mozilla Firefox\\firefox.exe', '-new-instance', '-profile', sys.argv[1], '-wait-for-browser', 'https://wiki.mozilla.org/Firefox/CommandLineOptions']
print('Launching browser: ' + ' '.join(cmd))
proc = subprocess.Popen(cmd)
for i in range(10):
if proc.poll() is not None:
print('Oops: process already quit, so we did not get a process handle to keep track of the browser instance.')
sys.exit(0)
time.sleep(1)
if proc.poll() is None:
print('terminating browser process')
proc.terminate()
time.sleep(2)
if proc.poll() is None:
print('terminating did not work. killing browser process')
proc.kill()
print('All done')
```
I am unable to find a behavioral difference between Windows and Linux.
So testing this out again on CircleCI.1 parent 1f463d1 commit 49fdd76
1 file changed
+19
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
140 | | - | |
| 144 | + | |
141 | 145 | | |
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
148 | 160 | | |
149 | 161 | | |
150 | 162 | | |
| |||
160 | 172 | | |
161 | 173 | | |
162 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
163 | 179 | | |
164 | 180 | | |
165 | 181 | | |
| |||
2059 | 2075 | | |
2060 | 2076 | | |
2061 | 2077 | | |
2062 | | - | |
| 2078 | + | |
2063 | 2079 | | |
2064 | 2080 | | |
2065 | 2081 | | |
| |||
2076 | 2092 | | |
2077 | 2093 | | |
2078 | 2094 | | |
2079 | | - | |
| 2095 | + | |
2080 | 2096 | | |
2081 | 2097 | | |
2082 | 2098 | | |
| |||
0 commit comments