Skip to content

Commit

Permalink
Fix smoke/install test for other architectures than pc (#11424)
Browse files Browse the repository at this point in the history
This test is failing in other architectures than pc because all the
core22 based snaps are not available yet.

I reproduced that in armhf, arm64 and s390x
  • Loading branch information
sergiocazzolato authored Feb 24, 2022
1 parent 16a71cd commit 9f1a953
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/smoke/install/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,14 @@ execute: |
echo "Ensure different bases work"
for base in core18 core20 core22; do
# no core20 or core22 snap for i386
if { [ "$base" = "core20" ] || [ "$base" = "core22" ]; } && [ "$(uname -m)" = i686 ]; then
# TODO remove this logic once core22 base snaps are uploaded in
# all the supported architectures
if [ "$base" = "core22" ] && not os.query is-pc-amd64; then
continue
fi
# no core20 snap for i386 architecture
if [ "$base" = "core20" ] && os.query is-pc-i386; then
continue
fi
Expand Down

0 comments on commit 9f1a953

Please sign in to comment.