Skip to content

Commit

Permalink
debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
saw-jan committed Sep 24, 2024
1 parent ee904c8 commit 440bed6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/gui/shared/scripts/helpers/SetupClientHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,18 +234,18 @@ def unlock_keyring():
if stderr:
output = stderr.decode('utf-8')
test.log(output)
if not output.strip().endswith('false'):
test.log('Unlocking keyring...')
password = os.getenv('VNC_PW')
command = f'echo -n "{password}" | gnome-keyring-daemon -r --unlock'
stdout, stderr, returncode = run_sys_command(command)
if stdout:
output = stdout.decode('utf-8')
if stderr:
output = stderr.decode('utf-8')
if returncode:
test.log(f'Failed to unlock keyring:\n{output}')
test.log(output)
# if not output.strip().endswith('false'):
# test.log('Unlocking keyring...')
# password = os.getenv('VNC_PW')
# command = f'echo -n "{password}" | gnome-keyring-daemon -r --unlock'
# stdout, stderr, returncode = run_sys_command(command)
# if stdout:
# output = stdout.decode('utf-8')
# if stderr:
# output = stderr.decode('utf-8')
# if returncode:
# test.log(f'Failed to unlock keyring:\n{output}')
# test.log(output)


def run_sys_command(command=None):
Expand Down

0 comments on commit 440bed6

Please sign in to comment.