Skip to content

Commit 9bd83e3

Browse files
committed
Fix crash report filtering logic and update crash detection condition
1 parent 3d17b43 commit 9bd83e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/run-tests-macos.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ function readRecentCrashReportForPid(pid, launchedAtMs) {
245245
}
246246

247247
const candidates = fs.readdirSync(crashReportsDir)
248-
.filter((name) => name.startsWith("TestRunner-") && (name.endsWith(".ips") || name.endsWith(".crash")))
248+
.filter((name) => name.startsWith("TestRunner") && (name.endsWith(".ips") || name.endsWith(".crash")))
249249
.map((name) => {
250250
const fullPath = path.join(crashReportsDir, name);
251251
let stats;
@@ -676,7 +676,7 @@ function main() {
676676
const exitStatus = getProcessExitStatus(code, signal);
677677

678678
if (!completedSuccessfully) {
679-
if (isLikelyCrash(code, signal)) {
679+
if (code !== 0 || signal) {
680680
await emitCrashBacktrace(appBinaryPath, runArgs, launchedAtMs, childPid);
681681
}
682682

0 commit comments

Comments
 (0)