It looks like test.log is getting over written
The output checked for failure doesn't show up as an artifact, making it hard to know why a test failed.
This commit is contained in:
parent
3ee685078b
commit
9f5a5af2ab
@ -14,14 +14,14 @@
|
||||
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
|
||||
/usr/local/bin/Squashfs-compression-test.sh &> /tmp/working.log; grep -iq failed /tmp/working.log && result=fail || result=pass
|
||||
echo -e "results:\n- {result: $result, test: working}" > /tmp/results.yml
|
||||
always:
|
||||
- name: Pull out the logs
|
||||
fetch:
|
||||
dest: "{{ artifacts }}/"
|
||||
dest: "{{ artifacts }}"
|
||||
src: "{{ item }}"
|
||||
flat: yes
|
||||
with_items:
|
||||
- /tmp/test.log
|
||||
- /tmp/working.log
|
||||
- /tmp/results.yml
|
||||
|
Loading…
Reference in New Issue
Block a user