Skip to content

Commit

Permalink
clear reftest-wait after reftest failure (#3994)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagudev authored Oct 11, 2024
1 parent 0f96947 commit e331ae2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/webgpu/web_platform/reftests/gpu_ref_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { assert } from '../../../common/util/util.js';
import { takeScreenshotDelayed } from '../../../common/util/wpt_reftest_wait.js';
import { takeScreenshot, takeScreenshotDelayed } from '../../../common/util/wpt_reftest_wait.js';

interface GPURefTest {
readonly device: GPUDevice;
Expand All @@ -22,5 +22,8 @@ export function runRefTest(fn: (t: GPURefTest) => Promise<void> | void): void {
await fn({ device, queue });

takeScreenshotDelayed(50);
})();
})().catch(() => {
// remove reftest-wait to mark end of test
takeScreenshot();
});
}

0 comments on commit e331ae2

Please sign in to comment.