test: wrong spawn cmd

This commit is contained in:
bordun 2018-10-29 13:04:33 +01:00
parent b62ec7fb74
commit 44cd795ef5

View file

@ -20,7 +20,7 @@ fs.writeFileSync(sessionPath, JSON.stringify(session))
var {spawn} = require('child_process')
var proc = spawn('npx', `xvfb-run npm start -- -l ${sessionPath}`.split(' '), {detached: true})
var proc = spawn('xvfb-run', `npm start -- -l ${sessionPath}`.split(' '), {detached: true})
proc.stdout.on('data', std)
proc.stderr.on('data', std)