squashfs-tools/tests/test_working.yml
Bruno Wolff III 786bcd85ae Add some filesystem related diagnostics
Get some help trying to figure out what is missing for squashfs loopback
mounts.
2019-05-22 11:10:45 -05:00

26 lines
912 B
YAML

---
- hosts: localhost
tags:
- classic
remote_user: root
tasks:
- name: Install the test files
copy: src={{ item.file }} dest=/usr/local/bin/{{ item.dest }} mode=0755
with_items:
- {file: Squashfs-compression-test.sh, dest: Squashfs-compression-test.sh }
- name: Test block
block:
- name: Execute the tests
shell: |
dnf install -y --nogpgcheck rpmdevtools; cat /proc/filesystems; ls ls /lib/modules/$(uname -r)/kernel/fs; ls /sbin/mount.*; (/usr/local/bin/Squashfs-compression-test.sh &> /tmp/test.log); grep -iq failed /tmp/test.log && result=fail || result=pass
echo -e "results:\n- {result: $result, test: working}" > /tmp/results.yml
always:
- name: Pull out the logs
fetch:
dest: "../../logs/"
src: "{{ item }}"
flat: yes
with_items:
- /tmp/test.log
- /tmp/results.yml