Skip to content

Commit

Permalink
tests/component: check message on installation
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsosanchezbeato committed Jun 22, 2024
1 parent f1c229b commit 77d03c9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/main/component/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,15 @@ execute: |
install_comp x1
install_comp x2
# Check message on installation
snap install --dangerous snap-with-comps+comp1_1.0.comp |
MATCH 'component comp1 1\.0 for snap-with-comps 1\.0 installed'
# TODO: add checks for components removals when implemented by snapd
# For the moment, remove the snap and then manually the components
snap remove snap-with-comps
cd /etc/systemd/system/
systemctl stop -- *'snap\x2dwith\x2dcomps-components-mnt-comp1-x2.mount'
systemctl stop -- *'snap\x2dwith\x2dcomps-components-mnt-comp1-x3.mount'
cd -
rm /etc/systemd/system/*'-snap\x2dwith\x2dcomps-components-mnt-comp1-x2.mount'
rm /etc/systemd/system/*'-snap\x2dwith\x2dcomps-components-mnt-comp1-x3.mount'
rm -rf "$SNAP_MOUNT_DIR"/snap-with-comps/

0 comments on commit 77d03c9

Please sign in to comment.