[PATCH] debian/tests: only run dkms test when dkms module is run
Colin King
colin.king at canonical.com
Mon Nov 25 15:54:31 UTC 2019
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
--
2.24.0
More information about the fwts-devel
mailing list