24 lines
1.0 KiB
Plaintext
24 lines
1.0 KiB
Plaintext
$OpenBSD: patch-electron_script_spec-runner_js,v 1.2 2020/04/06 18:58:16 robert Exp $
|
|
|
|
Index: electron/script/spec-runner.js
|
|
--- electron/script/spec-runner.js.orig
|
|
+++ electron/script/spec-runner.js
|
|
@@ -127,7 +127,7 @@ async function runElectronTests () {
|
|
async function runRemoteBasedElectronTests () {
|
|
let exe = path.resolve(BASE, utils.getElectronExec());
|
|
const runnerArgs = ['electron/spec', ...unknownArgs.slice(2)];
|
|
- if (process.platform === 'linux') {
|
|
+ if (process.platform === 'openbsd') {
|
|
runnerArgs.unshift(path.resolve(__dirname, 'dbus_mock.py'), exe);
|
|
exe = 'python';
|
|
}
|
|
@@ -198,7 +198,7 @@ async function runNativeElectronTests () {
|
|
async function runMainProcessElectronTests () {
|
|
let exe = path.resolve(BASE, utils.getElectronExec());
|
|
const runnerArgs = ['electron/spec-main', ...unknownArgs.slice(2)];
|
|
- if (process.platform === 'linux') {
|
|
+ if (process.platform === 'openbsd') {
|
|
runnerArgs.unshift(path.resolve(__dirname, 'dbus_mock.py'), exe);
|
|
exe = 'python';
|
|
}
|