ソースを参照

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");
 my @dd = ("$builddir/../src/dpkg-divert");
 
 
+if (! -x "@dd") {
+    plan skip_all => "dpkg-divert not available";
+    exit(0);
+}
+
 plan tests => 235;
 plan tests => 235;
 
 
 sub cleanup {
 sub cleanup {