Skip to content

Commit 5102ddb

Browse files
committed
Add os_family functionality to the test script.
1 parent 0ea6e9a commit 5102ddb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test_multiarch.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ function test_tags() {
116116
printf "\n##############################################\n"
117117
printf "\nError: Docker Image %s not found on hub.docker\n" "${img}"
118118
printf "\n##############################################\n"
119+
else
120+
echo "done"
119121
fi
120122
run_tests "${target_repo}":"${arch_tag}" "${rel}"
121123
done
@@ -161,13 +163,15 @@ for os in ${oses}
161163
do
162164
builds=$(parse_vm_entry "${vm}" "${version}" "${package}" "${os}" "Build:")
163165
btypes=$(parse_vm_entry "${vm}" "${version}" "${package}" "${os}" "Type:")
166+
osfamily=$(parse_vm_entry "${vm}" "${version}" "${package}" "${os}" "OS_Family:")
167+
164168
for build in ${builds}
165169
do
166170
shasums="${package}"_"${vm}"_"${version}"_"${build}"_sums
167-
if [ -z "${arch}" ]; then
171+
if [ -z "${current_arch}" ]; then
168172
jverinfo="${shasums}[version]"
169173
else
170-
jverinfo="${shasums}[version-${arch}]"
174+
jverinfo="${shasums}[version-${osfamily}_${current_arch}]"
171175
fi
172176
# shellcheck disable=SC1083,SC2086
173177
eval jrel=\${$jverinfo}

0 commit comments

Comments
 (0)