summaryrefslogtreecommitdiff
path: root/tests
diff options
authorMichael Vogt <mvo@ubuntu.com>2016-09-14 11:07:01 +0200
committerMichael Vogt <mvo@ubuntu.com>2016-09-14 11:14:01 +0200
commite96f59ccec95ec5270e458d7654ce1c054de1e5c (patch)
tree81d93aed446a5f26a4e6eb014de9b9c1abd92000 /tests
parent28bc558052465a68de6489234b56b06ea9a49b18 (diff)
tests/lib/prepare.sh: test that classic does not setting bootvars
Diffstat (limited to 'tests')
-rwxr-xr-xtests/lib/prepare.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/prepare.sh b/tests/lib/prepare.sh
index 75ca14518c..abed709150 100755
--- a/tests/lib/prepare.sh
+++ b/tests/lib/prepare.sh
@@ -12,6 +12,14 @@ prepare_classic() {
snap install --candidate ubuntu-core
snap list | grep core
+ echo "Ensure that the grub-editenv list output is empty on classic"
+ output=$(grub-editenv list)
+ if [ -n "$output" ]; then
+ echo "Expected empty grub environment, got:"
+ echo "$output"
+ exit 1
+ fi
+
systemctl stop snapd.service snapd.socket
systemctl daemon-reload
mounts="$(systemctl list-unit-files | grep '^snap[-.].*\.mount' | cut -f1 -d ' ')"