Skip to content

Commit

Permalink
tests: fix devel base snap test
Browse files Browse the repository at this point in the history
This test ensures that snapcraft can create a base snap and that the
devel base is usable.

Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
  • Loading branch information
mr-cal committed Apr 23, 2024
1 parent 9ba9615 commit ec529c7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/spread/core-devel/basic/task.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
summary: Test basic build for devel base
summary: Build a base snap using the 'devel' build base

environment:
SNAPCRAFT_BUILD_ENVIRONMENT: ""
Expand All @@ -7,13 +7,8 @@ restore: |
cd "./snap"
snapcraft clean
rm -f ./*.snap
snap remove build-base-devel
execute: |
cd "./snap"
snapcraft pack
snap install --dangerous ./*.snap
grep -i "devel" /snap/build-base-devel/current/etc/os-release || { echo "Devel image not found" ; exit 1; }

0 comments on commit ec529c7

Please sign in to comment.