summaryrefslogtreecommitdiff
path: root/scripts/t/Dpkg_Source_Quilt.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_Source_Quilt.t
parent24212e60a762bfc1d71a782646fb1fbf830bcfaf (diff)
downloaddpkg-2f05b55f031371458f6903fae4bfebacc555bd07.tar.gz
test: Refactor unit test data path into test_get_data_path()
Diffstat (limited to 'scripts/t/Dpkg_Source_Quilt.t')
-rw-r--r--scripts/t/Dpkg_Source_Quilt.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/t/Dpkg_Source_Quilt.t b/scripts/t/Dpkg_Source_Quilt.t
index f8d82e081..af0071dea 100644
--- a/scripts/t/Dpkg_Source_Quilt.t
+++ b/scripts/t/Dpkg_Source_Quilt.t
@@ -17,13 +17,13 @@ use strict;
use warnings;
use Test::More tests => 2;
+use Test::Dpkg qw(:paths);
BEGIN {
use_ok('Dpkg::Source::Quilt');
}
-my $srcdir = $ENV{srcdir} || '.';
-my $datadir = $srcdir . '/t/Dpkg_Source_Quilt';
+my $datadir = test_get_data_path('t/Dpkg_Source_Quilt');
my $quilt;
my (@series_got, @series_exp);