Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: remove snapd in ubuntu-core-snapd #8129

Merged
merged 1 commit into from
Feb 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/main/ubuntu-core-snapd/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ execute: |
# we cannot restore in "restore:" because we need a reboot
# right now to get a clean state again
systemctl stop snapd.service snapd.socket snapd.autoimport.service snapd.snap-repair.service
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add snapd.snap-repair.timer here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a follow-up

umount "/snap/snapd/$(readlink /snap/snapd/current)"

rm -f /etc/systemd/system/usr-lib-snapd.mount
rm -f /etc/systemd/system/snap-snapd-*.mount
rm -f /etc/systemd/system/snapd.{service,timer,socket}
rm -f /etc/systemd/system/snapd.*.{service,timer,socket}
rm -f /etc/systemd/system/*.wants/snapd.*.{service,timer,socket}
Expand All @@ -43,5 +46,8 @@ execute: |
REBOOT
fi
snap list
snap remove snapd
# and we can still run the rsync snap after the reboot
rsync --help
restore: |
not test -d /snap/snapd