Skip to content

Commit 23948f0

Browse files
committed
fix: result screen showing pb mismatch when bailing out of long tests
1 parent e21a205 commit 23948f0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

frontend/src/ts/test/result.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,9 @@ async function resultCanGetPb(): Promise<CanGetPbObject> {
482482
const funboxesOk =
483483
result.funbox === "none" || funboxes.length === 0 || allFunboxesCanGetPb;
484484
const notUsingStopOnLetter = Config.stopOnError !== "letter";
485+
const notBailedOut = !result.bailedOut;
485486

486-
if (funboxesOk && notUsingStopOnLetter) {
487+
if (funboxesOk && notUsingStopOnLetter && notBailedOut) {
487488
return {
488489
value: true,
489490
};
@@ -500,6 +501,12 @@ async function resultCanGetPb(): Promise<CanGetPbObject> {
500501
reason: "stop on letter",
501502
};
502503
}
504+
if (!notBailedOut) {
505+
return {
506+
value: false,
507+
reason: "bailed out",
508+
};
509+
}
503510
return {
504511
value: false,
505512
reason: "unknown",

0 commit comments

Comments
 (0)