summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven <Steven>2019-10-22 11:53:42 +0200
committersjabasti <steven.bastiaens@gmail.com>2019-10-29 14:20:31 +0100
commit20d679a8b9a959fceb8b4b9692114f0d39184017 (patch)
treecf1a8502b067b89cb57093eb3d15d1dea04abb0f
parent9de6b6f7d7b230c52bc036d5a3c3144f4e8a71e5 (diff)
Copy tempest.conf to /etc/tempest
Change-Id: I3f982f203b3745769174297f418a4e6159a1c3e8 ref: https://github.com/redhat-cip/ansible-role-openstack-certification/issues/14
-rw-r--r--tasks/artifacts.yml7
-rw-r--r--tasks/run_tests.yml8
2 files changed, 12 insertions, 3 deletions
diff --git a/tasks/artifacts.yml b/tasks/artifacts.yml
index bc229a7..3739b9e 100644
--- a/tasks/artifacts.yml
+++ b/tasks/artifacts.yml
@@ -1,7 +1,9 @@
---
- name: Retrieve certification test results
become: true
- shell: rhcert-ci print --format {{ openstack_certification_output_format }} | tail -n +2 | tee {{ openstack_certification_output_filename }}
+ shell: >
+ set -o pipefail
+ rhcert-ci print --format {{ openstack_certification_output_format }} | tail -n +2 | tee {{ openstack_certification_output_filename }}
args:
creates: '{{ openstack_certification_output_filename }}'
@@ -9,7 +11,8 @@
become: true
fetch:
src: '{{ openstack_certification_output_filename }}'
- dest: "{{ openstack_certification_dest_dir }}/{{ openstack_certification_output_filename.split('.')[0] }}_{{ ansible_hostname }}.{{ openstack_certification_output_filename.split('.')[1] }}"
+ dest: "{{ openstack_certification_dest_dir }}/{{ openstack_certification_output_filename.split('.')[0] }}_{{ ansible_hostname }}.\
+ {{ openstack_certification_output_filename.split('.')[1] }}"
flat: true
- block:
diff --git a/tasks/run_tests.yml b/tasks/run_tests.yml
index 7b75c73..2d6f94e 100644
--- a/tasks/run_tests.yml
+++ b/tasks/run_tests.yml
@@ -11,6 +11,12 @@
src: /tmp/tempest.conf
dest: /etc/redhat-certification-openstack/tempest.conf
+- name: Copy tempest.conf (Bug 1628403)
+ become: true
+ copy:
+ src: /tmp/tempest.conf
+ dest: /etc/tempest/tempest.conf
+
- name: Combine all certification tags, tests and programs
set_fact:
all_certification_types: '{{ openstack_certification_tags }} + {{ openstack_certification_tests }} + {{ openstack_certification_programs }}'
@@ -72,6 +78,6 @@
become: true
shell: >
set -x
- rhcert-ci clean all && rhcert-ci run --test {{" --test ".join(openstack_certification_tests)}} && rhcert-ci save
+ rhcert-ci clean all && rhcert-ci run --test {{ " --test ".join(openstack_certification_tests) }} && rhcert-ci save
ignore_errors: true
when: openstack_certification_test_type != "tag" and openstack_certification_test_type != "program"