Skip to content

Commit

Permalink
test: print "Using executable at ..." for custom executable (#6077)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgozman committed Apr 5, 2021
1 parent 4f7e745 commit bd61f86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/config/default.config.ts
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions tests/folio/src/dispatcher.ts
Expand Up @@ -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.
Expand Down

0 comments on commit bd61f86

Please sign in to comment.