Skip to content

Commit 158d64f

Browse files
author
Benjamin Pasero
committed
linux: disable crash reporting in CI (microsoft#142572)
1 parent 3a8aeab commit 158d64f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

unit/electron/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const optimist = require('optimist')
3232
.describe('wait-server', 'port to connect to and wait before running tests')
3333
.describe('timeout', 'timeout for tests')
3434
.describe('crash-reporter-directory', 'crash reporter directory').string('crash-reporter-directory')
35+
.describe('disableCrashReporter', 'disable crash reporter').boolean('disableCrashReporter')
3536
.describe('tfs').string('tfs')
3637
.describe('help', 'show the help').alias('help', 'h');
3738

@@ -43,7 +44,7 @@ if (argv.help) {
4344
}
4445

4546
let crashReporterDirectory = argv['crash-reporter-directory'];
46-
if (crashReporterDirectory) {
47+
if (crashReporterDirectory && !argv.disableCrashReporter) {
4748
crashReporterDirectory = path.normalize(crashReporterDirectory);
4849

4950
if (!path.isAbsolute(crashReporterDirectory)) {

0 commit comments

Comments
 (0)