Keep setup output out of test.log
It looks like the command that gets run covers more than the test script. We need to keep that other output out of the output we search for failure. The includes the dnf step, since it can have non fatal failures. It also looks like the dnf step might need kernel-modules-extra for mounting squashfs file systems.
This commit is contained in:
parent
0e49acc5e0
commit
60cf0845ea
@ -1,7 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
# We need rpmdev-vercmp
|
||||
dnf install -y --nogpgcheck rpmdevtools
|
||||
rpm -q rpmdevtools > /dev/null 2>&1 || (echo 'rpmdev-vercmp from rpmdevtools is needed to run this script, aborting (failed).'; exit 1)
|
||||
|
||||
# Define block sizes
|
||||
|
@ -12,7 +12,7 @@
|
||||
block:
|
||||
- name: Execute the tests
|
||||
shell: |
|
||||
/usr/local/bin/Squashfs-compression-test.sh &> /tmp/test.log; grep -iq failed /tmp/test.log && result=fail || result=pass
|
||||
dnf install -y --nogpgcheck kernel-modules-extra rpmdevtools; (/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