spec: push electron/spec into the spec runner args before the linux dbus wrapper

This commit is contained in:
Samuel Attard 2019-03-11 11:16:46 -07:00
parent 3656d12cba
commit 2023e32130
No known key found for this signature in database
GPG key ID: 191FEF027779CC6C

View file

@ -96,13 +96,13 @@ async function runElectronTests () {
async function runRemoteBasedElectronTests () { async function runRemoteBasedElectronTests () {
let exe = path.resolve(BASE, utils.getElectronExec()) let exe = path.resolve(BASE, utils.getElectronExec())
const args = process.argv.slice(2).filter(arg => !arg.startsWith('--only=')) const args = ['electron/spec', ...process.argv.slice(2).filter(arg => !arg.startsWith('--only='))]
if (process.platform === 'linux') { if (process.platform === 'linux') {
args.unshift(path.resolve(__dirname, 'dbus_mock.py'), exe) args.unshift(path.resolve(__dirname, 'dbus_mock.py'), exe)
exe = 'python' exe = 'python'
} }
const { status } = childProcess.spawnSync(exe, ['electron/spec', ...args], { const { status } = childProcess.spawnSync(exe, args, {
cwd: path.resolve(__dirname, '../..'), cwd: path.resolve(__dirname, '../..'),
stdio: 'inherit' stdio: 'inherit'
}) })