mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
spec: push electron/spec into the spec runner args before the linux dbus wrapper
This commit is contained in:
@@ -96,13 +96,13 @@ async function runElectronTests () {
|
||||
|
||||
async function runRemoteBasedElectronTests () {
|
||||
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') {
|
||||
args.unshift(path.resolve(__dirname, 'dbus_mock.py'), exe)
|
||||
exe = 'python'
|
||||
}
|
||||
|
||||
const { status } = childProcess.spawnSync(exe, ['electron/spec', ...args], {
|
||||
const { status } = childProcess.spawnSync(exe, args, {
|
||||
cwd: path.resolve(__dirname, '../..'),
|
||||
stdio: 'inherit'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user