From a4bffb286bba7ce868f862d1489aeac64ad31ba5 Mon Sep 17 00:00:00 2001 From: Dirk McCormick Date: Tue, 21 May 2019 18:48:33 -0400 Subject: [PATCH] chore: rebase --- test/utils/ipfs-exec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/utils/ipfs-exec.js b/test/utils/ipfs-exec.js index 92f3e0f4e0..f4be357c02 100644 --- a/test/utils/ipfs-exec.js +++ b/test/utils/ipfs-exec.js @@ -7,7 +7,6 @@ const expect = chai.expect chai.use(dirtyChai) const path = require('path') const _ = require('lodash') -const yargs = require('yargs') // This is our new test utility to easily check and execute ipfs cli commands. // @@ -34,10 +33,11 @@ module.exports = (repoPath, opts) => { })) const execute = (exec, args) => { - // Adding '--' at the front of the command allows us to parse commands that - // have a parameter with spaces in it, eg - // ipfs refs --format=" -> " - const cp = exec(yargs('-- ' + args[0]).argv._) + if (args.length === 1) { + args = args[0].split(' ') + } + + const cp = exec(args) const res = cp.then((res) => { // We can't escape the os.tmpdir warning due to: // https://github.com/shelljs/shelljs/blob/master/src/tempdir.js#L43