Remove the video file only if it exists
Fixes: #29554 Signed-off-by: Hynek Mlnarik <hmlnarik@redhat.com>
This commit is contained in:
parent
2180d50b18
commit
3ecc564575
1 changed files with 1 additions and 1 deletions
|
@ -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 });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue