MCPcopy Index your code
hub / github.com/Unitech/pm2 / run

Function run

test/parallel.js:16–27  ·  view source on GitHub ↗
(cmd, cb)

Source from the content-addressed store, hash-verified

14var timings = {};
15
16function run(cmd, cb) {
17 exec(cmd, function(err, stdout, stderr) {
18 if (err) {
19 console.log(`Retrying ${cmd}`)
20 return exec(cmd, function(err, stdout, stderr) {
21 if (err) return cb(stdout.split('\n'));
22 return cb(null);
23 })
24 }
25 return cb(null)
26 })
27}
28
29function buildContainer(cb) {
30 exec(`docker build -t ${DOCKER_IMAGE_NAME} -f test/Dockerfile .`, cb)

Callers 1

launchTestSuiteFunction · 0.70

Calls 2

cbFunction · 0.85
execFunction · 0.50

Tested by

no test coverage detected