From 8eb67d1839a37aec35a52d320eae51bcb00dbe18 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Sun, 26 Feb 2023 08:48:27 -0600 Subject: [PATCH] trivial: debian: install device tests only if found during build --- debian/fwupd-tests.install | 1 - debian/rules | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/fwupd-tests.install b/debian/fwupd-tests.install index f1bd21299..05e393ec4 100644 --- a/debian/fwupd-tests.install +++ b/debian/fwupd-tests.install @@ -3,7 +3,6 @@ #find them. for more information see: #https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872458 usr/share/installed-tests/* -usr/share/fwupd/device-tests/*.json usr/libexec/installed-tests/fwupd/fwupd.sh usr/libexec/installed-tests/fwupd/*-self-test debian/lintian/fwupd-tests usr/share/lintian/overrides diff --git a/debian/rules b/debian/rules index 2b3b6b48a..462a47b72 100755 --- a/debian/rules +++ b/debian/rules @@ -72,6 +72,9 @@ override_dh_install: #install docs (maybe) [ ! -d debian/tmp/usr/share/doc ] || dh_install -pfwupd-doc usr/share/doc + #install devices-tests (maybe) + [ ! -d debian/tmp/usr/share/fwupd/device-tests/ ] || dh_install -pfwupd-tests usr/share/fwupd/device-tests + dh_missing -a --fail-missing #this is placed in fwupd-tests