Skip to content

Commit

Permalink
tests/lxd: add Ubuntu 18.04, 20.04, 22.04
Browse files Browse the repository at this point in the history
Extend the list of systems.

Signed-off-by: Maciej Borzecki <[email protected]>
  • Loading branch information
bboozzoo committed Dec 5, 2024
1 parent 91395e4 commit a9fac0b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/lxd/checks/main/task.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
summary: Ensure it works.

execute: |
echo WORKS
echo WORKS $SPREAD_SYSTEM
3 changes: 3 additions & 0 deletions tests/lxd/spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ backends:
lxd:
systems:
- ubuntu-16.04
- ubuntu-18.04
- ubuntu-20.04
- ubuntu-22.04

path: /home/test

Expand Down
6 changes: 4 additions & 2 deletions tests/lxd/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ prepare: |
execute: |
spread -vv -reuse -resend &> task.out
grep 'lxd:ubuntu-16.04:checks/main' task.out
grep '^WORKS$' task.out
for system in ubuntu-16.04 ubuntu-18.04 ubuntu-20.04 ubuntu-22.04; do
grep "lxd:${system}:checks/main" task.out
grep "^WORKS ${system}\$" task.out
done
debug: |
cat task.out || true

0 comments on commit a9fac0b

Please sign in to comment.