You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[test] Improve stdout/stderr capturing for browser tests. NFC (emscripten-core#24174)
Now you just need to edit one line in browser_reporting.js to have
stdout/stderr sent back to the server.
This makes debugging issues, especially in headless mode, much simpler.
Ideally I'd like to make this even easier (e.g. enabled via a command
line flag), but this is a good step in the right direction.
I made this change while trying to invesitgate flakiness in
`test_sdl_mouse`. The ouput from that test with this logging enabled now
looks like this:
```
test_sdl_mouse (test_browser.browser.test_sdl_mouse) ... 127.0.0.1 - - [23/Apr/2025 10:42:49] code 404, message File not found
[client stderr: 'motion: abs:10,20 rel:10,20']
[client stderr: 'button down: 1,1 10,20']
[client stderr: 'button up: 1,0 10,20']
[client stderr: 'motion: abs:30,77 rel:20,57']
ok
[Browser harness server terminated]
```
0 commit comments