Skip to content

Commit

Permalink
[js/web] dump debug logs for karma for diagnose purpose (microsoft#19785
Browse files Browse the repository at this point in the history
)

### Description
dump debug logs for karma for diagnose purpose.

This is for debugging the CI issue of Chrome launch failure and
considered temporary.
  • Loading branch information
fs-eire authored Mar 6, 2024
1 parent 7fbd4f2 commit 31e453a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/script/test-runner-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,9 @@ async function main() {
if (webnn) {
chromiumFlags.push('--enable-experimental-web-platform-features');
}
if (process.argv.includes('--karma-debug')) {
karmaArgs.push('--log-level debug');
}
karmaArgs.push(`--bundle-mode=${args.bundleMode}`);
karmaArgs.push(...chromiumFlags.map(flag => `--chromium-flags=${flag}`));
if (browser.startsWith('Edge')) {
Expand Down

0 comments on commit 31e453a

Please sign in to comment.