Skip to content

Commit bd2f849

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

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3936
1+
4106

test/browser_reporting.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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

6-
var reportingURL = 'http://localhost:8888/';
6+
var reportingURL = 'http://localhost:8888';
77

88
async function reportResultToServer(result) {
99
if (reportResultToServer.reported) {

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)