-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/lxd-vm: prepare test for running on multiple systems
Prepare the test to run on multiple systems and mention why Ubuntu 16.04, 18.04, and 22.04 are not currently working. Signed-off-by: Maciej Borzecki <[email protected]>
- Loading branch information
Showing
2 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
summary: Test the lxd backend. | ||
|
||
prepare: | | ||
if [ ! -f .spread-reuse.yaml ]; then | ||
touch /run/spread-reuse.yaml | ||
ln -s /run/spread-reuse.yaml .spread-reuse.yaml | ||
fi | ||
execute: | | ||
spread -vv -reuse -resend &> task.out | ||
grep 'lxd-vm:ubuntu-20.04:checks/main' task.out | ||
grep '^WORKS$' task.out | ||
# we'll run out of space on GCP systems so run VM tests one by one | ||
for t in $(spread -list); do | ||
spread -vv "$t" &> task.out | ||
MATCH '^WORKS$' < task.out | ||
# delete all VM images (there's just one test per system so this is | ||
# fine), note lxd 4.x does not support filtering by image type | ||
lxc image delete $(lxc image list -f csv -c 'ft' |grep VIRTUAL | cut -f1 -d,) | ||
done | ||
debug: | | ||
cat task.out || true |