Skip to content
Permalink
Browse files

Print more info during compatibility test (#440)

* Print more info during compatibility test

Prints a summary of the environments to be tested and their
corresponding version tags.
  • Loading branch information
weiminyu committed Jan 10, 2020
1 parent 4eae108 commit bd5299b2f25c96fa0ee9ea2636bf2b1c95cde04a
Showing with 5 additions and 0 deletions.
  1. +5 −0 integration/runCompatibilityTests.sh
@@ -146,17 +146,22 @@ if [[ ! -z "${ENV}" ]] && [[ "${ENV}" != "sandbox" ]] \
exit 1
fi

echo "Testing ${SUT} against deployed ${DEPLOYED_SYSTEM} versions:"
if [[ -z "${ENV}" ]]; then
SANDBOX_VERSION=$(fetchVersion ${DEPLOYED_SYSTEM} sandbox ${DEV_PROJECT})
PROD_VERSION=$(fetchVersion ${DEPLOYED_SYSTEM} production ${DEV_PROJECT})
if [[ ${SANDBOX_VERSION} = ${PROD_VERSION} ]]; then
VERSIONS=(${PROD_VERSION})
echo "- sandbox and production at ${PROD_VERSION}"
else
VERSIONS=(${PROD_VERSION} ${SANDBOX_VERSION})
echo "- sandbox at ${SANDBOX_VERSION}"
echo "- production at ${PROD_VERSION}"
fi
else
TARGET_VERSION=$(fetchVersion ${DEPLOYED_SYSTEM} ${ENV} ${DEV_PROJECT})
VERSIONS=(${TARGET_VERSION})
echo "- ${ENV} at ${TARGET_VERSION}"
fi

for v in ${VERSIONS[@]}; do

0 comments on commit bd5299b

Please sign in to comment.
You can’t perform that action at this time.