path: root/dh_elpa_test
diff options
Diffstat (limited to 'dh_elpa_test')
1 files changed, 7 insertions, 2 deletions
diff --git a/dh_elpa_test b/dh_elpa_test
index c2d366a..d91925c 100755
--- a/dh_elpa_test
+++ b/dh_elpa_test
@@ -21,7 +21,8 @@ buttercup(1). dh_auto_test is rarely suitable.
Testing with buttercup(1) will be activated if the package
build-depends on elpa-buttercup. Testing with ERT will be activated
-if ERT test files can be found.
+if ERT test files can be found. Neither kind of test will be
+activated unless the debhelper compat level is 10 or higher.
@@ -98,7 +99,11 @@ use Array::Utils qw{ array_minus };
use Debian::Debhelper::Dh_Lib;
use Debian::Control;
-if (get_buildoption("nocheck")) {
+# This checks whether the debhelper compat is 10 or above. With
+# debhelper compat below 9, dh_elpa_test will get run more in more
+# than one sequence, including inside fakeroot, which can cause tests
+# to fail
+if ( get_buildoption("nocheck") || compat(9) ) {
exit 0;