Fix handling of DEB_BUILD_OPTIONS=nocheck
authorLars Christensen <larsch@belunktum.dk>
Fri, 29 Jun 2018 06:28:16 +0000 (06:28 +0000)
committerAnders Broman <a.broman58@gmail.com>
Sun, 1 Jul 2018 04:33:03 +0000 (04:33 +0000)
When DEB_BUILD_OPTIONS is set to nocheck when running dpkg-buildpackage, tests
would not be built but still run. Changed to nether build or run tests when set
to nocheck.

Change-Id: I2a27025273aab536f0fc0a98cb8efd2d825c5013
Reviewed-on: https://code.wireshark.org/review/28529
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
debian/rules

index 9add94da3da80e4120fe2b83866fc14b6d9535eb..b8d8e95d2365fa3d91d02b172196dc89b7ae3c22 100755 (executable)
@@ -67,7 +67,7 @@ override_dh_fixperms:
 
 # Adapted from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861988
 override_dh_auto_test:
-ifeq ($(filter $(DEB_BUILD_OPTIONS),nocheck),)
+ifneq ($(filter $(DEB_BUILD_OPTIONS),nocheck),)
        # XXX Add -- --verbose?
        dh_auto_test
 else