From ab19cf34d2b5c169ab31c701fea133ce4ca8d577 Mon Sep 17 00:00:00 2001 From: Jonathan Cave Date: Fri, 11 Oct 2019 10:39:30 +0100 Subject: kernel-snap: booted kernel test updates Use the bootloader resource to supply the location of the kernel image used for the current boot. --- units/kernel-snap/jobs.pxu | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'units') diff --git a/units/kernel-snap/jobs.pxu b/units/kernel-snap/jobs.pxu index ddc35818..3ccb687d 100644 --- a/units/kernel-snap/jobs.pxu +++ b/units/kernel-snap/jobs.pxu @@ -14,7 +14,9 @@ imports: requires: ubuntu_core_features.force_kernel_extraction == 'True' -id: kernel-snap/booted-kernel-matches-current +unit: template +template-resource: bootloader +id: kernel-snap/booted-kernel-matches-current-{name} category_id: kernel-snap _summary: The booted kernel image matches image in current kernel snap _description: @@ -25,7 +27,7 @@ plugin: shell user: root estimated_duration: 2.0 command: - booted_kernel_tests.py + booted_kernel_tests.py {booted-kernel-path} imports: from com.canonical.certification import ubuntu_core_features requires: -- cgit v1.2.3