From b78bd09fa90af007e15f3d3f5f0a54a5804b30a0 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Wed, 6 Nov 2024 16:19:46 -0800 Subject: [PATCH] Make CI green I Signed-off-by: Abhijeet Kasurde --- .../targets/become_prompt/test-become-prompt.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/test/integration/targets/become_prompt/test-become-prompt.py b/test/integration/targets/become_prompt/test-become-prompt.py index da76e8f883f..f1b6a422d3e 100644 --- a/test/integration/targets/become_prompt/test-become-prompt.py +++ b/test/integration/targets/become_prompt/test-become-prompt.py @@ -9,20 +9,18 @@ import sys import pexpect -os.environ['ANSIBLE_AGNOSTIC_BECOME_PROMPT'] = 'False' +os.environ["ANSIBLE_AGNOSTIC_BECOME_PROMPT"] = "False" out = pexpect.run( - 'ansible -c ssh -i localhost, -u cliuser1 -e ansible_python_interpreter={0} ' - '-m command -a whoami -Kkb --become-user cliuser2 localhost'.format(sys.argv[1]), + "ansible -c ssh -i localhost, -u cliuser1 -e ansible_python_interpreter={0} " + "-m command -a whoami -Kkb --become-user cliuser2 localhost".format(sys.argv[1]), events={ - 'SSH password:': 'secretpassword\n', - 'SUDO password': 'secretpassword\n', + "SSH password:": "secretpassword\n", + "SUDO password": "secretpassword\n", }, - timeout=10 + timeout=10, ) print(out) -assert b'The setting AGNOSTIC_BECOME_PROMPT to False' in out - - +assert b"The setting AGNOSTIC_BECOME_PROMPT to False" in out