Make kernel-modules match running kernel
This commit is contained in:
parent
b429d76ed8
commit
6013fc72af
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user