Skip to content

Commit

Permalink
log platform name
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Sep 6, 2023
1 parent 6313ec0 commit 21d915c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/playwright-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,15 @@ async function run(nodeBin: string, runCfgPath: string, suiteName: string) {
console.log(`Sauce Playwright Runner ${packageInfo.version}`);
console.log(`Running Playwright ${packageInfo.dependencies?.playwright || ''}`);

const platform = os.platform();
const currentPATH = process.env.PATH || '';
if (platform === 'win32') {
process.env.PATH = `${currentPATH};${path.resolve(path.dirname(nodeBin))}`;
} else {
process.env.PATH = `${currentPATH}:${path.resolve(path.dirname(nodeBin))}`;
}
console.log('nodeBin: ', nodeBin)
console.log('path: ', process.env.PATH)

let result: RunResult;
if (runCfg.Kind === 'playwright-cucumberjs') {
Expand Down

0 comments on commit 21d915c

Please sign in to comment.