Make kernel-modules match running kernel
This commit is contained in:
parent
b429d76ed8
commit
6013fc72af
@ -6,8 +6,7 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Add extra required packages
|
- name: Add extra required packages
|
||||||
dnf:
|
dnf:
|
||||||
name: rpmdevtools, kernel-modules
|
name: rpmdevtools, kernel-modules-{{ ansible_kernel }}
|
||||||
state: latest
|
|
||||||
- name: Install the test files
|
- name: Install the test files
|
||||||
copy: src={{ item.file }} dest=/usr/local/bin/{{ item.dest }} mode=0755
|
copy: src={{ item.file }} dest=/usr/local/bin/{{ item.dest }} mode=0755
|
||||||
with_items:
|
with_items:
|
||||||
@ -16,7 +15,7 @@
|
|||||||
block:
|
block:
|
||||||
- name: Execute the tests
|
- name: Execute the tests
|
||||||
shell: |
|
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
|
echo -e "results:\n- {result: $result, test: working}" > /tmp/results.yml
|
||||||
always:
|
always:
|
||||||
- name: Pull out the logs
|
- name: Pull out the logs
|
||||||
|
Loading…
Reference in New Issue
Block a user