diff options
author | Matt Clay <matt@mystile.com> | 2022-08-22 14:54:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-22 14:54:49 -0700 |
commit | 57c523eb6562c2924aaf61aaf79cee7dd9350a15 (patch) | |
tree | 6fd7b3c732758437ad9c49b3a77a8169443e3fa5 | |
parent | 06886f09c5c05a93337637028ba9e7670c8e0493 (diff) | |
download | ansible-57c523eb6562c2924aaf61aaf79cee7dd9350a15.tar.gz |
[stable-2.9] Fix file integration test chattr/lsattr check. (#78614) (#78621)
On BusyBox systems such as Alpine, chattr on a tmpfs fails with a status of 0 and output only on stderr.
This change updates the test to not assume output on stdout..
(cherry picked from commit 2e536c0afb9008884a0f12e8e650541e0ead76c9)
-rw-r--r-- | test/integration/targets/file/tasks/main.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/integration/targets/file/tasks/main.yml b/test/integration/targets/file/tasks/main.yml index 34ae4ba4b7..8f1e9b4e5f 100644 --- a/test/integration/targets/file/tasks/main.yml +++ b/test/integration/targets/file/tasks/main.yml @@ -146,8 +146,10 @@ attributes_supported: yes when: - attribute_A_set is success + - attribute_A_set.stdout_lines - "'A' in attribute_A_set.stdout_lines[0].split()[1]" - attribute_A_unset is success + - attribute_A_unset.stdout_lines - "'A' not in attribute_A_unset.stdout_lines[0].split()[1]" - name: explicitly set file attribute "A" |