From e684553ce9d9aa4e007a31ea30ea5ec09948aaa8 Mon Sep 17 00:00:00 2001 From: Isaac True Date: Wed, 22 Nov 2023 14:06:15 +0100 Subject: [PATCH] ERL-467: tests: spread: add test to verify that the desired snaps are installed Signed-off-by: Isaac True --- tests/spread/snaps/task.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/spread/snaps/task.yaml diff --git a/tests/spread/snaps/task.yaml b/tests/spread/snaps/task.yaml new file mode 100644 index 0000000..bada37e --- /dev/null +++ b/tests/spread/snaps/task.yaml @@ -0,0 +1,23 @@ +--- + +summary: "Verify installed snaps" + +systems: + - "nemos-image-reference-*" + +execute: | + # Wait for snapd to finish setting itself up + TIMEOUT=100 + while [ $(systemctl is-active snapd.seeded) != "active" ] && [ $TIMEOUT -gt 0 ]; do + sleep 1 + TIMEOUT=$((${TIMEOUT} - 1)) + done + + for snap in \ + snapd \ + checkbox22 \ + checkbox \ + checkbox-erlangen-classic \ + core22; do + snap list "${snap}" + done