summaryrefslogtreecommitdiff
path: root/scripts/t
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-11-08 02:31:01 +0100
committerGuillem Jover <guillem@debian.org>2016-11-09 01:10:28 +0100
commit6ec8b1b4b180015924fb39a6f33d2f7527355324 (patch)
treef4f0acf716042685baefa89eb8e68823e754b26b /scripts/t
parentb8f8c886d704c4fdaa0303d6311a4a211637a490 (diff)
downloaddpkg-6ec8b1b4b180015924fb39a6f33d2f7527355324.tar.gz
test: Do not fail on missing fakeroot just skip them
Diffstat (limited to 'scripts/t')
-rw-r--r--scripts/t/dpkg_buildpackage.t8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/t/dpkg_buildpackage.t b/scripts/t/dpkg_buildpackage.t
index bf6cd4425..5e363d66e 100644
--- a/scripts/t/dpkg_buildpackage.t
+++ b/scripts/t/dpkg_buildpackage.t
@@ -16,8 +16,8 @@
use strict;
use warnings;
-use Test::More tests => 12;
-use Test::Dpkg qw(test_neutralize_checksums);
+use Test::More;
+use Test::Dpkg qw(:needs test_neutralize_checksums);
use File::Spec::Functions qw(rel2abs);
use File::Compare;
@@ -28,6 +28,10 @@ use Dpkg::IPC;
use Dpkg::Build::Types;
use Dpkg::Substvars;
+test_needs_command('fakeroot');
+
+plan tests => 12;
+
my $srcdir = rel2abs($ENV{srcdir} || '.');
my $datadir = "$srcdir/t/dpkg_buildpackage";
my $tmpdir = 't.tmp/dpkg_buildpackage';