Skip to content

Commit

Permalink
tests/main/upgrade-from-release: workaround for older snapd deb version
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestl committed Dec 13, 2024
1 parent f78fee0 commit 9a3491b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/main/upgrade-from-release/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ execute: |
snap install go-example-webserver
tests.systemd wait-for-service -n 30 --state active snap.go-example-webserver.webserver.service
snap install test-snapd-tools
test-snapd-tools.echo hello | MATCH hello
# In case of known error on older snapd deb versions e.g. 2.32.5+18.04,
# rerun with SNAP_REEXEC=1
if result=$(test-snapd-tools hello | MATCH hello); then
SNAPD_DEBUG=1 snap version | MATCH "re-exec disabled by user"
MATCH "cannot perform readlinkat() on the mount namespace file descriptor of the init process" <<< "$result"
SNAP_REEXEC=1 test-snapd-tools.echo hello | MATCH hello
fi
echo "upgrade to current snapd"
if [ "${VERSION_ID}" = "14.04" ]; then
Expand Down

0 comments on commit 9a3491b

Please sign in to comment.