ACK: [PATCH] debian/tests: only run dkms test when dkms module is run

ivanhu ivan.hu at canonical.com
Fri Dec 6 02:31:34 UTC 2019



On 11/25/19 11:54 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> In the case where the efi test driver is not built by dkms
> then we should basically skip the dkms test.  To do this,
> add a test control file that only runs the dkms-autopkgtest
> if the dkms driver has been built.
> 
> This commit is requred by the earlier commit "efi_runtime: don't 
> build dkms module for kernels 4.8.0 and above" to work on older
> and current kernels.
> 
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  debian/tests/control | 3 +++
>  1 file changed, 3 insertions(+)
>  create mode 100644 debian/tests/control
> 
> diff --git a/debian/tests/control b/debian/tests/control
> new file mode 100644
> index 00000000..f972527f
> --- /dev/null
> +++ b/debian/tests/control
> @@ -0,0 +1,3 @@
> +Test-Command: [ -e /lib/modules/$(uname -r)/updates/dkms/efi_runtime.ko ] && /usr/lib/dkms/dkms-autopkgtest || true
> +Restrictions: needs-root, allow-stderr
> +Depends: dkms
> 


Acked-by: Ivan Hu <ivan.hu at canonical.com>



More information about the fwts-devel mailing list