Skip to content
Open
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
10 changes: 7 additions & 3 deletions tests/spread/testcraft/skip-repack/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ summary: test testcraft pack/repack
environment:
CRAFT_BUILD_ENVIRONMENT/managed: ""
CRAFT_BUILD_ENVIRONMENT/destructive: host
CRAFT_IDLE_MINS/managed: 2 # Speed up test by not restarting the container.

execute: |
prepare: |
mkdir repack-test

execute: |
cd repack-test

testcraft init
Expand Down Expand Up @@ -34,7 +37,8 @@ execute: |
# Repacking is not necessary
testcraft pack 2>&1 | MATCH "Skipping pack"

testcraft clean

restore: |
pushd repack-test
testcraft clean
popd
rm -Rf repack-test
Loading