Skip to content

Commit cae70a5

Browse files
committed
tests/core/basic20plus: check kernel drivers tree metadata
Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
1 parent 0967112 commit cae70a5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/core/basic20plus/task.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ execute: |
152152
stat /run/systemd/system/sysroot-usr-lib-modules.mount
153153
stat /run/systemd/system/"sysroot-writable-system\x2ddata-snap-$device\x2dkernel-"*
154154
155+
# Check the generator version
156+
gojq '.["generator-version"]' /var/lib/snapd/kernel/"$device"-kernel/x1/kernel.json | \
157+
MATCH '^1$'
158+
155159
not mountpoint /run/mnt/base
156160
loop="$(findmnt -o source / -n)"
157161
# Might be in /run/mnt/ubuntu-seed/ on first 26+ boot or in /run/mnt/data/

0 commit comments

Comments
 (0)