Skip to content

Commit

Permalink
OCPBUGS-19853: improve support for multi architecture test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
  • Loading branch information
prb112 committed Mar 19, 2024
1 parent dff1e9f commit 9747491
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/e2e/e2e-simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ OCI_REGISTRY_NAMESPACE="${ENV_OCI_REGISTRY_NAMESPACE:-redhatgov}"
CATALOG_ARCH="$(arch | sed 's|aarch64|arm64|g')"
if [ "${CATALOG_ARCH}" == "x86_64" ]
then
OCI_CTLG_PATH="oc-mirror-dev"
OCI_CTLG="oc-mirror-dev"
OCI_CTLG_PATH="oc-mirror-dev.tgz"
else
OCI_CTLG="oc-mirror-${CATALOG_ARCH}-dev"
OCI_CTLG_PATH="oc-mirror-${CATALOG_ARCH}-dev.tgz"
Expand Down
7 changes: 6 additions & 1 deletion test/e2e/lib/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,12 @@ function setup_helm_repository_testdata() {
export HELM_REPOSITORY_CACHE=$DATA_DIR
echo -e "\nSetting up test directory in $DATA_DIR"
mkdir -p "$OUTPUT_DIR"
curl -L https://mirror.openshift.com/pub/openshift-v4/clients/helm/latest/helm-linux-${CATALOG_ARCH} -o ./helm
if [ "${CATALOG_ARCH}" == "x86_64" ]
then
curl -L https://mirror.openshift.com/pub/openshift-v4/clients/helm/latest/helm-linux-amd64 -o ./helm
else
curl -L https://mirror.openshift.com/pub/openshift-v4/clients/helm/latest/helm-linux-${CATALOG_ARCH} -o ./helm
fi
chmod +x ./helm
./helm repo add sbo https://redhat-developer.github.io/service-binding-operator-helm-chart/
cp "${DIR}/configs/${CONFIG_PATH}" "${OUTPUT_DIR}/"
Expand Down

0 comments on commit 9747491

Please sign in to comment.