test-suite: update singularity test to pull down aarch64-specific
docker image when running in that environment (it defaults to amd64).
@@ -13,19 +13,23 @@ check_rms
rm=$RESOURCE_MANAGER
module purge || exit 1
module load singularity || exit 1
-
+ARCH=`uname -m`
+echo $ARCH > foo.out
+if [ "$ARCH" == "aarch64" ];then
+ export DOCKER_ARCHITECTURE=arm64
+fi
DISTRO=ubuntu
IMAGE=./${DISTRO}.sif
-
@test "[singularity] check for RPM" {
check_if_rpm_installed "singularity${DELIM}"
}
-@test "[singularity] pull down $DISTRO image" {
+@test "[singularity] pull down $DISTRO docker image" {
rm -f ${IMAGE}
- run singularity pull ${IMAGE} library://library/default/${DISTRO}
+
+ singularity pull ${IMAGE} docker://${DISTRO}:latest
run test -s ${IMAGE}
assert_success
