Skip to content

Commit c10a14c

Browse files
committed
[test] Enable stdout/stderr logging by default in browser tests
1 parent c05d5fd commit c10a14c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/browser_reporting.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Set this to true to have stdout and stderr sent back to the server
2-
var captureStdoutStderr = false;
2+
var captureStdoutStderr = true;
33

44
var hasModule = typeof Module === 'object' && Module;
55

test/common.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2127,7 +2127,9 @@ def do_POST(self):
21272127
self.send_response(200)
21282128
self.end_headers()
21292129
else:
2130-
print(f'do_POST: unexpected POST: {urlinfo.query}')
2130+
print(f'do_POST: unexpected POST: {self.path} {urlinfo}')
2131+
self.send_response(404)
2132+
self.end_headers()
21312133

21322134
def do_GET(self):
21332135
info = urlparse(self.path)

0 commit comments

Comments
 (0)