Skip to content

Commit 6d929e7

Browse files
authored
test: update craftctl test (#102)
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
1 parent d78ddbe commit 6d929e7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/spread/general/craftctl/snap/snapcraft.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,21 @@ build-base: SNAPCRAFT_BUILD_BASE
1111
parts:
1212
hello:
1313
plugin: nil
14+
build-packages:
15+
# Note: We add this package explicitly here to make sure that the
16+
# declaration of Python build packages does not clobber the existing
17+
# Python installation (with Snapcraft libraries).
18+
- python3-venv
1419
override-pull: |
1520
echo -e "#!/usr/bin/env bash\necho hello" > hello.sh
1621
chmod +x hello.sh
1722
craftctl get grade | grep devel
1823
craftctl set version="22"
1924
craftctl set grade=stable
25+
craftctl default
2026
override-build: |
2127
craftctl get version | grep 22
2228
craftctl get grade | grep stable
2329
echo "This is the build step"
2430
cp hello.sh "$CRAFT_PART_INSTALL"/
31+
craftctl default

0 commit comments

Comments
 (0)