Use docker command instead of api to create redis container

This commit is contained in:
Girish Ramakrishnan
2016-06-16 17:57:55 -05:00
parent 2ab13d587a
commit be2c7a97b3
2 changed files with 24 additions and 47 deletions

View File

@@ -19,8 +19,13 @@ function execSync(tag, cmd, callback) {
assert.strictEqual(typeof cmd, 'string');
debug(cmd);
child_process.execSync(cmd, { stdio: 'inherit' });
if (callback) return callback();
try {
child_process.execSync(cmd, { stdio: 'inherit' });
} catch (e) {
if (callback) return callback(e);
throw e;
}
if (callback) callback();
}
function exec(tag, file, args, callback) {