Codebase list cinder-tempest-plugin / 5ae7924
Handle the case when tempest fails Before this change, the errors from tempest run are suppressed in order to always execute cinderlib tests. Use the new variable exported by run-tempest instead, and fail properly if needed. Depends-On: https://review.opendev.org/720213 Change-Id: Ic1fd6fcc9b9183f195c66f0022e913ae9734c97b Luigi Toscano 6 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1818 - setup-tempest-data-dir
1919 - acl-devstack-files
2020 - role: run-tempest
21 # ignore the errors, so that run-cinderlib-tests is always executed
21 # ignore the errors for now, so that run-cinderlib-tests is always executed
2222 ignore_errors: yes
2323 - role: change-devstack-data-owner
2424 devstack_data_subdir_changed: cinder
2525 devstack_data_subdir_owner: zuul
2626 - role: run-cinderlib-tests
2727 cinderlib_base_dir: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/cinderlib'].src_dir }}"
28 post_tasks:
29 - name: Fail if the first tempest run did not work
30 fail:
31 msg: "tempest run returned with an error"
32 when: tempest_run_result is defined and tempest_run_result.rc != 0