You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a corner case failure of a test under vanilla Ansible when verbosity is >= 3. In tests/ansible/integration/become/sudo_flags_failure.yml the task "Verify raw module output" failures to find any variant of the --derps doesn't exist message. This is probably because module_stderr returned contains a mixture of CRLF and LF line endings, which may confuse the $ in the regexes.
TASK [Verify raw module output. that=['out.failed', '\'sudo: no such option: --derps\' in out.msg or out.module_stdout is match("sudo: invalid option -- \'-\'") or out.module_stderr is match("sudo: invalid option -- \'-\'") or out.module_stdout is match("sudo: unrecognized option [`\']--derps\'") or out.module_stderr is match("sudo: unrecognized option [`\']--derps\'")'], fail_msg=out={{ out }}] ***
task path: /home/runner/work/mitogen/mitogen/tests/ansible/integration/become/sudo_flags_failure.yml:13
Saturday 12 October 2024 08:27:03 +0000 (0:00:00.149) 0:00:03.176 ******
fatal: [target-debian10-1]: FAILED! => changed=false
assertion: '''sudo: no such option: --derps'' in out.msg or out.module_stdout is match("sudo: invalid option -- ''-''") or out.module_stderr is match("sudo: invalid option -- ''-''") or out.module_stdout is match("sudo: unrecognized option [`'']--derps''") or out.module_stderr is match("sudo: unrecognized option [`'']--derps''")'
evaluated_to: false
msg: |-
'failed': True,
'module_stdout': '',
'module_stderr':
OpenSSH_8.2p1 Ubuntu-4ubuntu0.11, OpenSSL 1.1.1f 31 Mar 2020debug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files\r\ndebug1: /etc/ssh/ssh_config line 21: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 4062\r\ndebug3: mux_client_request_session: session request sent\r\nsudo: unrecognized option '--derps'\nusage: sudo -h | -K | -k | -V\nusage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]\nusage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user]\n [command]\nusage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p\n prompt] [-T timeout] [-u user] [VAR=value] [-i|-s] [<command>]\nusage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p\n prompt] [-T timeout] [-u user] file ...\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n", 'msg': 'MODULE FAILURE\nSee stdout/stderr for the exact error',
'rc': 1, 'changed': False}
The text was updated successfully, but these errors were encountered:
This is a corner case failure of a test under vanilla Ansible when verbosity is >= 3. In tests/ansible/integration/become/sudo_flags_failure.yml the task "Verify raw module output" failures to find any variant of the
--derps doesn't exist
message. This is probably because module_stderr returned contains a mixture of CRLF and LF line endings, which may confuse the$
in the regexes.The text was updated successfully, but these errors were encountered: