Get rid of remnents of indirect test run
This commit is contained in:
parent
046ee552fa
commit
0e49acc5e0
@ -1,12 +1,25 @@
|
|||||||
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
roles:
|
|
||||||
- role: standard-test-basic
|
|
||||||
tags:
|
tags:
|
||||||
- classic
|
- classic
|
||||||
tests:
|
remote_user: root
|
||||||
- working:
|
tasks:
|
||||||
dir: .
|
- name: Install the test files
|
||||||
run: ansible-playbook --tags=classic wrapper_working.yml
|
copy: src={{ item.file }} dest=/usr/local/bin/{{ item.dest }} mode=0755
|
||||||
required_packages:
|
with_items:
|
||||||
- rpmdevtools
|
- {file: Squashfs-compression-test.sh, dest: Squashfs-compression-test.sh }
|
||||||
- ansible
|
- name: Test block
|
||||||
|
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
|
||||||
|
echo -e "results:\n- {result: $result, test: working}" > /tmp/results.yml
|
||||||
|
always:
|
||||||
|
- name: Pull out the logs
|
||||||
|
fetch:
|
||||||
|
dest: "../../logs/"
|
||||||
|
src: "{{ item }}"
|
||||||
|
flat: yes
|
||||||
|
with_items:
|
||||||
|
- /tmp/test.log
|
||||||
|
- /tmp/results.yml
|
||||||
|
@ -1 +1 @@
|
|||||||
- import_playbook: wrapper_working.yml
|
- import_playbook: tests_working.yml
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
---
|
|
||||||
- hosts: localhost
|
|
||||||
tags:
|
|
||||||
- classic
|
|
||||||
remote_user: root
|
|
||||||
tasks:
|
|
||||||
- name: Install the test files
|
|
||||||
copy: src={{ item.file }} dest=/usr/local/bin/{{ item.dest }} mode=0755
|
|
||||||
with_items:
|
|
||||||
- {file: Squashfs-compression-test.sh, dest: Squashfs-compression-test.sh }
|
|
||||||
- name: Test block
|
|
||||||
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
|
|
||||||
echo -e "results:\n- {result: $result, test: working}" > /tmp/results.yml
|
|
||||||
always:
|
|
||||||
- name: Pull out the logs
|
|
||||||
fetch:
|
|
||||||
dest: "../../logs/"
|
|
||||||
src: "{{ item }}"
|
|
||||||
flat: yes
|
|
||||||
with_items:
|
|
||||||
- /tmp/test.log
|
|
||||||
- /tmp/results.yml
|
|
Loading…
Reference in New Issue
Block a user