Get rid of remnents of indirect test run

This commit is contained in:
Bruno Wolff III 2019-05-22 04:22:53 -05:00
parent 046ee552fa
commit 0e49acc5e0
3 changed files with 25 additions and 37 deletions

View File

@ -1,12 +1,25 @@
---
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- working:
dir: .
run: ansible-playbook --tags=classic wrapper_working.yml
required_packages:
- rpmdevtools
- ansible
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

View File

@ -1 +1 @@
- import_playbook: wrapper_working.yml
- import_playbook: tests_working.yml

View File

@ -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