diff --git a/tests/test_working.yml b/tests/test_working.yml index 52c2331..bcc7884 100644 --- a/tests/test_working.yml +++ b/tests/test_working.yml @@ -6,8 +6,7 @@ tasks: - name: Add extra required packages dnf: - name: rpmdevtools, kernel-modules - state: latest + name: rpmdevtools, kernel-modules-{{ ansible_kernel }} - name: Install the test files copy: src={{ item.file }} dest=/usr/local/bin/{{ item.dest }} mode=0755 with_items: @@ -16,7 +15,7 @@ block: - name: Execute the tests shell: | - modprobe squashfs; cat /proc/filesystems; lsmod; (/usr/local/bin/Squashfs-compression-test.sh &> /tmp/test.log); grep -iq failed /tmp/test.log && result=fail || result=pass + (/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