From 0a175a4dc45041971b13bbfb468841d80af24d82 Mon Sep 17 00:00:00 2001 From: Saw-jan Date: Tue, 24 Sep 2024 17:11:00 +0545 Subject: [PATCH] test: start suffix from 2 --- test/gui/shared/scripts/bdd_hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/gui/shared/scripts/bdd_hooks.py b/test/gui/shared/scripts/bdd_hooks.py index 4e7aba6c5b1..101e135e92d 100644 --- a/test/gui/shared/scripts/bdd_hooks.py +++ b/test/gui/shared/scripts/bdd_hooks.py @@ -176,7 +176,7 @@ def save_screenrecord(filename): for idx, video in enumerate(video_files): if idx: file_parts = filename.rsplit(".", 1) - filename = f"{file_parts[0]}_{idx}.{file_parts[1]}" + filename = f"{file_parts[0]}_{idx+1}.{file_parts[1]}" shutil.move(video, os.path.join(screenrecords_dir, filename)) shutil.rmtree(prefix_path_namespace(video_dir))