From 7fdd3318a221628d241eb85a223a829a4a1b7f5a Mon Sep 17 00:00:00 2001 From: kkanova Date: Tue, 22 Oct 2019 08:11:20 +0200 Subject: [PATCH] Fixing versioning. --- functional-tests/devscripts/run_tests.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/functional-tests/devscripts/run_tests.sh b/functional-tests/devscripts/run_tests.sh index b11a23391..8c91afa91 100755 --- a/functional-tests/devscripts/run_tests.sh +++ b/functional-tests/devscripts/run_tests.sh @@ -102,7 +102,12 @@ if [[ "$PR_CHECK_BUILD" == "true" ]]; then rhche_image="quay.io/openshiftio/rhchestage-rh-che-e2e-tests:${version}" #reuse image if exists or build new image for test - if docker pull $rhche_image | cat; then + set +e + docker pull $rhche_image > /dev/null 2>&1 + docker_pull_exit_code=$? + set -e + + if [[ $docker_pull_exit_code == 0 ]]; then echo "RH-Che test image with tag ${version} found on docker. Reusing image." else echo "Could not found RH-Che tests image with tag ${version}."