Includes review feedback and extra debugging to try to figure out firefox flakiness.
This commit is contained in:
Родитель
e85da999b7
Коммит
1c37059e5a
|
@ -258,6 +258,9 @@ commands:
|
|||
cat $TMPDIR/fifo > /dev/null # wait until $EXTRA_AUTOSTART is spawned, which indicates the end of Openbox initialization
|
||||
rm -r $TMPDIR
|
||||
tests/runner browser posixtest_browser.test_pthread_create_1_1 skip:browser.test_sdl2_mouse skip:browser.test_html5_webgl_create_context skip:browser.test_webgl_offscreen_canvas_in_pthread skip:browser.test_webgl_offscreen_canvas_in_mainthread_after_pthread skip:browser.test_glut_glutget
|
||||
echo "-----"
|
||||
echo "Running emrun tests"
|
||||
echo "-----"
|
||||
tests/runner emrun
|
||||
openbox --exit
|
||||
wait || true # wait for startx to shutdown cleanly, or not
|
||||
|
|
|
@ -5035,8 +5035,8 @@ class emrun(RunnerCore):
|
|||
assert 'Traceback' not in result
|
||||
|
||||
def test_no_browser(self):
|
||||
# Test --no_browser mode where we have to take care of launching the browser outselves
|
||||
# and killin emrun when we are done.
|
||||
# Test --no_browser mode where we have to take care of launching the browser ourselves
|
||||
# and then killing emrun when we are done.
|
||||
if not has_browser():
|
||||
self.skipTest('need a browser')
|
||||
|
||||
|
@ -5044,15 +5044,20 @@ class emrun(RunnerCore):
|
|||
proc = subprocess.Popen([EMRUN, '--no_browser', '.', '--port=3333'], stdout=PIPE)
|
||||
try:
|
||||
if EMTEST_BROWSER:
|
||||
print('Starting browser')
|
||||
browser_cmd = shlex.split(EMTEST_BROWSER)
|
||||
browser = subprocess.Popen(browser_cmd + ['http://localhost:3333/hello_world.html'])
|
||||
while True:
|
||||
stdout = proc.stdout.read()
|
||||
if b'Dumping out file' in stdout:
|
||||
break
|
||||
browser.terminate()
|
||||
browser.wait()
|
||||
try:
|
||||
while True:
|
||||
stdout = proc.stdout.read()
|
||||
if b'Dumping out file' in stdout:
|
||||
break
|
||||
finally:
|
||||
print('Terminating browser')
|
||||
browser.terminate()
|
||||
browser.wait()
|
||||
finally:
|
||||
print('Terminating emrun server')
|
||||
proc.terminate()
|
||||
proc.wait()
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче