]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_auto_test
Tighten parsing of DEB_BUILD_OPTIONS.
[debhelper.git] / dh_auto_test
index ab361cc5cad6be9fe0c44b3be4675e6118a30bbd..85eaf48a7a7d65af21eb2809d24cde2c3d2c63a7 100755 (executable)
@@ -7,6 +7,7 @@ dh_auto_test - automatically runs a package's test suites
 =cut
 
 use strict;
+use Debian::Debhelper::Dh_Lib;
 use Debian::Debhelper::Dh_Buildsystems;
 
 =head1 SYNOPSIS
@@ -48,7 +49,7 @@ tests will be performed.
 
 =cut
 
-if (defined $ENV{DEB_BUILD_OPTIONS} && $ENV{DEB_BUILD_OPTIONS} =~ /nocheck/) {
+if (get_buildoption("nocheck")) {
        exit 0;
 }