summaryrefslogtreecommitdiff
path: root/scripts/t/Dpkg_Dist_Files.t
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2017-01-23 04:45:19 +0100
committerGuillem Jover <guillem@debian.org>2017-01-25 04:02:40 +0100
commit2f05b55f031371458f6903fae4bfebacc555bd07 (patch)
treeac32cba850d37d67d34631bae5255c97d26c9b66 /scripts/t/Dpkg_Dist_Files.t
parent24212e60a762bfc1d71a782646fb1fbf830bcfaf (diff)
downloaddpkg-2f05b55f031371458f6903fae4bfebacc555bd07.tar.gz
test: Refactor unit test data path into test_get_data_path()
Diffstat (limited to 'scripts/t/Dpkg_Dist_Files.t')
-rw-r--r--scripts/t/Dpkg_Dist_Files.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/t/Dpkg_Dist_Files.t b/scripts/t/Dpkg_Dist_Files.t
index 4dccffe7f..d43c2245e 100644
--- a/scripts/t/Dpkg_Dist_Files.t
+++ b/scripts/t/Dpkg_Dist_Files.t
@@ -17,11 +17,11 @@ use strict;
use warnings;
use Test::More tests => 26;
+use Test::Dpkg qw(:paths);
use_ok('Dpkg::Dist::Files');
-my $srcdir = $ENV{srcdir} // '.';
-my $datadir = $srcdir . '/t/Dpkg_Dist_Files';
+my $datadir = test_get_data_path('t/Dpkg_Dist_Files');
my $expected;
my %expected = (