test: print "Using executable at ..." for custom executable (#6077)
This commit is contained in:
parent
4f7e7450e2
commit
bd61f863c4
|
|
@ -52,6 +52,8 @@ const serverEnv = new ServerEnv();
|
|||
const browsers = ['chromium', 'webkit', 'firefox'] as BrowserName[];
|
||||
for (const browserName of browsers) {
|
||||
const executablePath = getExecutablePath(browserName);
|
||||
if (executablePath && (process.env.FOLIO_WORKER_INDEX === undefined || process.env.FOLIO_WORKER_INDEX === ''))
|
||||
console.error(`Using executable at ${executablePath}`);
|
||||
const mode = (process.env.PWMODE || 'default') as ('default' | 'driver' | 'service');
|
||||
const options = {
|
||||
mode,
|
||||
|
|
|
|||
|
|
@ -349,6 +349,7 @@ class Worker extends EventEmitter {
|
|||
env: {
|
||||
FORCE_COLOR: process.stdout.isTTY ? '1' : '0',
|
||||
DEBUG_COLORS: process.stdout.isTTY ? '1' : '0',
|
||||
FOLIO_WORKER_INDEX: String(this.index),
|
||||
...process.env
|
||||
},
|
||||
// Can't pipe since piping slows down termination for some reason.
|
||||
|
|
|
|||
Loading…
Reference in a new issue