mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
[PR #10209/63add288 backport][stable-9] Tests: adjust to ansible-core devel changes (#10210)
Tests: adjust to ansible-core devel changes (#10209) Apparently the error message returned by AnsibleModule.run_command() when trying to execute a non-existing executable changed. Ref:600c1e67b4(cherry picked from commit63add288dc) Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -89,7 +89,7 @@
|
|||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- cmd.rc == 2
|
- cmd.rc == 2
|
||||||
- '"No such file" in cmd.msg'
|
- '"No such file" in cmd.msg or "Error executing command." == cmd.msg'
|
||||||
|
|
||||||
- name: Get dummymain alternatives output
|
- name: Get dummymain alternatives output
|
||||||
command:
|
command:
|
||||||
@@ -172,7 +172,7 @@
|
|||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- cmd.rc == 2
|
- cmd.rc == 2
|
||||||
- '"No such file" in cmd.msg'
|
- '"No such file" in cmd.msg or "Error executing command." == cmd.msg'
|
||||||
|
|
||||||
- name: Get dummymain alternatives output
|
- name: Get dummymain alternatives output
|
||||||
command:
|
command:
|
||||||
|
|||||||
@@ -260,3 +260,5 @@ cmd_echo_tests:
|
|||||||
assertions:
|
assertions:
|
||||||
- >
|
- >
|
||||||
"No such file or directory" in test_result.msg
|
"No such file or directory" in test_result.msg
|
||||||
|
or
|
||||||
|
"Error executing command." == test_result.msg
|
||||||
|
|||||||
Reference in New Issue
Block a user