mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 12:07:51 +02:00
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.
This commit is contained in:
parent
b7c1a47e84
commit
df5d91f335
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue