Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Aug 18, 2019
1 parent 95837ff commit bfa244c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 108 deletions.
74 changes: 0 additions & 74 deletions src/debug/error.js

This file was deleted.

32 changes: 0 additions & 32 deletions src/debug/execute.js

This file was deleted.

5 changes: 3 additions & 2 deletions src/debug/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import pMapSeries from 'p-map-series'

import { getIterations } from '../iterations/main.js'

import { executeChild } from './execute.js'
import { executeChild } from '../processes/execute.js'

// Run benchmark in debug mode
export const debugBenchmark = async function(opts) {
Expand Down Expand Up @@ -35,5 +34,7 @@ const runIteration = async function({
cwd,
taskId,
variationId,
stdio: ['ignore', 'inherit', 'inherit'],
fds: [],
})
}
4 changes: 4 additions & 0 deletions src/processes/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ export const executeChild = async function({
variationId,
})

if (output === undefined) {
return
}

const outputA = JSON.parse(output)
return outputA
}
Expand Down

0 comments on commit bfa244c

Please sign in to comment.