From db724f719db6a155da585b4fe8059e7e28463b04 Mon Sep 17 00:00:00 2001 From: nizar-m <19857260+nizar-m@users.noreply.github.com> Date: Tue, 10 Mar 2020 12:31:26 +0530 Subject: [PATCH] Server upgrade tests: Do not fail it no tests were collected (#4071) Co-authored-by: Nizar Malangadan Co-authored-by: Vamshi Surabhi <0x777@users.noreply.github.com> --- .circleci/server-upgrade/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/server-upgrade/run.sh b/.circleci/server-upgrade/run.sh index 9736970ff5bf1..7ac040e393540 100755 --- a/.circleci/server-upgrade/run.sh +++ b/.circleci/server-upgrade/run.sh @@ -158,7 +158,7 @@ run_server_upgrade_pytest() { [ -n "$1" ] || ( echo "Got no test as input" && false ) local tests_to_run="$(collect_common_tests $1)" - [ -n "$tests_to_run" ] || ( echo "could not collect any tests for $1" && false ) + [ -z "$tests_to_run" ] && log "could not collect any tests for $1" && return log "Removing schemas with hasura metadata" # This is required since we do not have a dowgrade command, yet.