diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2016-05-01 10:49:24 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2016-05-01 10:49:24 -0700 |
commit | 4fd4e600988a39edab1f2196acbe0a3f98f73301 (patch) | |
tree | 897ed6b26bcc5e65909e53e57d401147052f2589 /dh_elpa_test | |
parent | 02ccabee22c11eb38a777b82740398dd795a616f (diff) |
don't run tests if DH_COMPAT < 10
Diffstat (limited to 'dh_elpa_test')
-rwxr-xr-x | dh_elpa_test | 9 |
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. =head1 ENVIRONMENT VARIABLES @@ -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; } |