From 7a77faf1943b3857bbd289206049857f60c8b180 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Mon, 17 Aug 2020 21:02:26 -0700 Subject: [PATCH] fix(testrunner): do not override debug.log (#3505) Otherwise, our DEBUG_FILE is ignored and we dump all DEBUG on the bots. --- test/runner/runner.js | 3 --- test/runner/worker.js | 5 ----- 2 files changed, 8 deletions(-) diff --git a/test/runner/runner.js b/test/runner/runner.js index f303cbf0be..a8b0b41a0c 100644 --- a/test/runner/runner.js +++ b/test/runner/runner.js @@ -219,9 +219,6 @@ class OopWorker extends EventEmitter { process.stderr.write(chunk); this.stderr.push(chunk); }); - this.on('debug', data => { - process.stderr.write(data + '\n'); - }); } async init() { diff --git a/test/runner/worker.js b/test/runner/worker.js index 12409f9873..6f4b6c16a6 100644 --- a/test/runner/worker.js +++ b/test/runner/worker.js @@ -14,7 +14,6 @@ * limitations under the License. */ -const debug = require('debug'); const { fixturePool } = require('./fixturesUI'); const { gracefullyCloseAll } = require('../../lib/server/processLauncher'); const { TestRunner, initializeImageMatcher } = require('./testRunner'); @@ -42,10 +41,6 @@ process.stderr.write = chunk => { sendMessageToParent('stderr', chunkToParams(chunk)); }; -debug.log = data => { - sendMessageToParent('debug', data); -}; - process.on('disconnect', gracefullyCloseAndExit); process.on('SIGINT',() => {}); process.on('SIGTERM',() => {});