Remove the video file only if it exists

Fixes: #29554

Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
This commit is contained in:
Hynek Mlnarik 2024-05-15 12:37:50 +02:00 committed by Hynek Mlnařík
parent 2180d50b18
commit 3ecc564575

View file

@ -35,7 +35,7 @@ export default defineConfig({
if (!failures) {
// delete the video if the spec passed and no tests retried
fs.unlinkSync(results.video);
fs.rmSync(results.video, { force: true });
}
}
}