[debhelper-devel] [debhelper] 19/30: Test::DH: Support alternative fixture dir
Niels Thykier
nthykier at moszumanska.debian.org
Mon Jul 3 14:40:37 UTC 2017
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository debhelper.
commit fe310ea002955f2fd8300e9367199b867ba58247
Author: Niels Thykier <niels at thykier.net>
Date: Sun Jul 2 16:06:32 2017 +0000
Test::DH: Support alternative fixture dir
Signed-off-by: Niels Thykier <niels at thykier.net>
---
t/Test/DH.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/t/Test/DH.pm b/t/Test/DH.pm
index 0f72850..0cf1e39 100644
--- a/t/Test/DH.pm
+++ b/t/Test/DH.pm
@@ -116,12 +116,14 @@ sub _prepare_test_root {
}
if (@::TEST_DH_EXTRA_TEMPLATE_FILES) {
my $test_dir = ($TEST_DIR //= dirname($0));
+ my $fixture_dir = $::TEST_DH_FIXTURE_DIR // '.';
+ my $actual_dir = "$test_dir/$fixture_dir";
for my $file (@::TEST_DH_EXTRA_TEMPLATE_FILES) {
if (index($file, '/') > -1) {
my $install_dir = dirname($file);
install_dir($install_dir);
}
- install_file("${test_dir}/${file}", "${dir}/${file}");
+ install_file("${actual_dir}/${file}", "${dir}/${file}");
}
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git
More information about the debhelper-devel
mailing list