From 1db3294053895ff34afb5d7f9d1742f487d7f39e Mon Sep 17 00:00:00 2001 From: Saw-jan Date: Wed, 8 Jan 2025 16:15:41 +0545 Subject: [PATCH] take ss on failure --- test/gui/shared/scripts/helpers/SetupClientHelper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/gui/shared/scripts/helpers/SetupClientHelper.py b/test/gui/shared/scripts/helpers/SetupClientHelper.py index 6906414ee6e..0a80050f1c8 100644 --- a/test/gui/shared/scripts/helpers/SetupClientHelper.py +++ b/test/gui/shared/scripts/helpers/SetupClientHelper.py @@ -13,7 +13,7 @@ from helpers.SyncHelper import listen_sync_status_for_item from helpers.api.utils import url_join from helpers.UserHelper import get_displayname_for_user -from helpers.ReportHelper import is_video_enabled +from helpers.ReportHelper import is_video_enabled, take_screenshot def substitute_inline_codes(value): @@ -254,6 +254,8 @@ def unlock_keyring(): test.log(f'Keyring status: {output}') if not output.strip().endswith('false'): test.log('Unlocking keyring...') + start_client() + take_screenshot('keyring_locked.png') test.fail('debug') password = os.getenv('VNC_PW') command = f'echo -n "{password}" | gnome-keyring-daemon -r -d --unlock'