spec: push electron/spec into the spec runner args before the linux dbus wrapper
This commit is contained in:
		
					parent
					
						
							
								3656d12cba
							
						
					
				
			
			
				commit
				
					
						2023e32130
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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'
 | 
			
		||||
  })
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue