Skip to content

Commit

Permalink
tests/main/upgrade-from-release: workaround for older snapd deb versi…
Browse files Browse the repository at this point in the history
…on (#14854)
  • Loading branch information
ernestl authored Jan 7, 2025
1 parent 98cc265 commit a6866a7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 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,15 @@ 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 as workaround for this step
if result=$(test-snapd-tools.echo hello 2>&1); then
MATCH hello <<< "$result"
else
SNAPD_DEBUG=1 snap version 2>&1 | 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 a6866a7

Please sign in to comment.