From 57ba57615d489ac4e18a22aef75536bc3096d783 Mon Sep 17 00:00:00 2001 From: Brian Terlson Date: Mon, 25 Jul 2016 13:50:53 -0700 Subject: [PATCH] Fix bug with finding errors on stdout --- lib/agentPool.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/agentPool.js b/lib/agentPool.js index b00b369..bb139b4 100644 --- a/lib/agentPool.js +++ b/lib/agentPool.js @@ -30,8 +30,7 @@ function makePool(agentCount, hostType, hostArgs, hostPath) { .then(result => { pool.onNext(agent); test.rawResult = result; - - const doneError = record.stdout.match(/^test262\/error (.*)$/gm); + const doneError = result.stdout.match(/^test262\/error (.*)$/gm); if (doneError) { const lastErrorString = doneError[doneError.length - 1]; const errorMatch = lastErrorString.match(/test262\/error ([^:]+): (.*)/);