diff --git a/test/selfhost-ec2-create-test.js b/test/selfhost-ec2-create-test.js index 79030ac..4b34d45 100644 --- a/test/selfhost-ec2-create-test.js +++ b/test/selfhost-ec2-create-test.js @@ -38,10 +38,10 @@ function machine(args, options) { args = util.isArray(args) ? args : args.match(/[^\s"]+|"([^"]+)"/g); args = args.map(function (e) { return e[0] === '"' ? e.slice(1, -1) : e; }); // remove the quotes - console.log('machine ' + args.join(' ')); + console.log('cloudron machine ' + args.join(' ')); try { - var cp = child_process.spawnSync('machine', args, { stdio: [ options.stdin || 'pipe', options.stdout || 'pipe', 'pipe' ], encoding: options.encoding || 'utf8' }); + var cp = child_process.spawnSync('cloudron', ['machine'].concat(args), { stdio: [ options.stdin || 'pipe', options.stdout || 'pipe', 'pipe' ], encoding: options.encoding || 'utf8' }); return cp; } catch (e) { console.error(e);