Fix file integration test chattr/lsattr check. (#78614)

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.
pull/78605/head
Matt Clay 2 years ago committed by GitHub
parent ece85abbc4
commit 2e536c0afb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -151,8 +151,10 @@
attributes_supported: yes
when:
- attribute_A_set is success
- attribute_A_set.stdout_lines
- "'A' in attribute_A_set.stdout_lines[0].split()[0]"
- attribute_A_unset is success
- attribute_A_unset.stdout_lines
- "'A' not in attribute_A_unset.stdout_lines[0].split()[0]"
- name: explicitly set file attribute "A"

Loading…
Cancel
Save