Преглед изворни кода

build: Skip all dpkg-divert tests if the binary is not available

Guillem Jover пре 16 година
родитељ
комит
0535fac53f
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      scripts/t/950_dpkg_divert.t

+ 5 - 0
scripts/t/950_dpkg_divert.t

@@ -28,6 +28,11 @@ my $testdir = File::Spec->rel2abs("$tmpdir/testdir");
 
 my @dd = ("$builddir/../src/dpkg-divert");
 
+if (! -x "@dd") {
+    plan skip_all => "dpkg-divert not available";
+    exit(0);
+}
+
 plan tests => 235;
 
 sub cleanup {