Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

docker-build-httpd: continue on failure #403

Merged
merged 3 commits into from
May 31, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! docker-build-httpd: continue on failure
  • Loading branch information
mike-nguyen committed May 30, 2018
commit c764c37d3d9ffe1aac7eaf1e1ff8a8dfb56ce75b
9 changes: 9 additions & 0 deletions tests/docker-build-httpd/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,13 @@
when: log_results
local_action: copy content={{ tests | to_nice_yaml(indent=2) }} dest={{ result_file }}
become: false

# Handled exceptions show up as failures in Ansible but the playbook
# itself does not return 0, so explicitly fail the test by checking
# the test results
- name: Explicitly fail based on test results
when: item['result']|lower == "failed"
fail:
msg: "Failure found in test"
with_items: "{{ tests }}"
tags: cleanup