From 9f1d4fb665d415cbb044aba8d8cece6fdbd4852c Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Mon, 27 May 2024 16:27:51 +0200 Subject: [PATCH] [PATCH 04/18] tests: use snapctl umount rather than umount Snapctl creates systemd mount units that may be activated again, so plain umount is insufficient to correctly undo all the changes. Signed-off-by: Zygmunt Krynicki Gbp-Pq: Name 0006-PATCH-04-18-tests-use-snapctl-umount-rather-than-umo.patch --- tests/regression/lp-2065077/task.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regression/lp-2065077/task.yaml b/tests/regression/lp-2065077/task.yaml index 4f94fe15..bf0c1a42 100644 --- a/tests/regression/lp-2065077/task.yaml +++ b/tests/regression/lp-2065077/task.yaml @@ -16,7 +16,7 @@ prepare: | mkdir -p /var/snap/test-snapd-sh/common/base-files echo 'snapctl mount -o ro,bind,noatime,noexec /usr/share/base-files /var/snap/test-snapd-sh/common/base-files' | snap run --shell test-snapd-sh.sh mountpoint /var/snap/test-snapd-sh/common/base-files - tests.cleanup defer umount /var/snap/test-snapd-sh/common/base-files + tests.cleanup defer snap run --shell test-snapd-sh.sh -c \'snapctl umount /var/snap/test-snapd-sh/common/base-files\' tests.session prepare -u test tests.cleanup defer tests.session restore -u test -- 2.30.2