Fix the AWS_BUCKET check

Ensure that AWS tests are run if the AWS_BUCKET environment variable is
set.

Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
Major Hayden 2020-06-01 08:18:24 -05:00 committed by Major Hayden
parent 4842d144aa
commit 70fa9e4696
2 changed files with 2 additions and 1 deletions

View file

@ -37,6 +37,7 @@ ansible-playbook \
ansible-osbuild/playbook.yml
# Run the tests.
echo "The AWS_BUCKET env var is set to: ${AWS_BUCKET:-}"
ansible-playbook \
-e workspace=${WORKSPACE} \
-e test_type=${TEST_TYPE:-base} \

View file

@ -43,7 +43,7 @@
when:
- test_type == 'image'
# Don't run the AWS test if the bucket env var is not set.
- (lookup('env', 'AWS_BUCKET') | default(false)) | bool
- lookup('env', 'AWS_BUCKET') | length > 0
- name: Show failed and passed tests
debug: