Skip to content

Commit

Permalink
Fix bug with finding errors on stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
bterlson committed Jul 25, 2016
1 parent 09db831 commit 57ba576
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/agentPool.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ([^:]+): (.*)/);
Expand Down

0 comments on commit 57ba576

Please sign in to comment.