Browse Source

Adjust autopkgtest

Christoph Biedl 10 months ago
parent
commit
be4695bcfb
2 changed files with 4 additions and 16 deletions
  1. 3 2
      debian/tests/control
  2. 1 14
      debian/tests/run-testsuite

+ 3 - 2
debian/tests/control

@@ -1,6 +1,7 @@
 Tests: run-testsuite
-Depends: @,
+Depends:
     systemd,
-    tang,
+    tang (>= 7-3~),
+    tang-nagios (>= 7-2~),
 Architecture: linux-any
 Restrictions: allow-stderr

+ 1 - 14
debian/tests/run-testsuite

@@ -2,19 +2,6 @@
 
 set -e
 
-TANG=
-
-for f in /usr/lib/*/nagios/plugins/tang ; do
-    [ -f "$f" ] || continue
-    [ -x "$f" ] || continue
-    TANG="$f"
-done
-
-if [ -z "$TANG" ] ; then
-    echo 'E: No (nagios-)tang executable found'
-    exit 1
-fi
-
-export PATH="$(dirname "$TANG"):/usr/libexec:$PATH"
+export PATH=":/usr/libexec:/usr/lib/nagios/plugins:$PATH"
 
 exec ./tang