[lintian] 01/01: t: Remove data dependency in a test
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 7651ab0fd414aac9b19dc6586876bda2ad9aebf0
Author: Niels Thykier <niels@thykier.net>
Date: Sun Jun 18 06:24:13 2017 +0000
t: Remove data dependency in a test
Signed-off-by: Niels Thykier <niels@thykier.net>
---
t/tests/changelog-file-backport/desc | 3 +++
.../profiles/lintian-test/main.profile | 2 ++
.../main/data/changes-file/known-dists | 23 ++++++++++++++++++++++
3 files changed, 28 insertions(+)
diff --git a/t/tests/changelog-file-backport/desc b/t/tests/changelog-file-backport/desc
index 63403f5..2144804 100644
--- a/t/tests/changelog-file-backport/desc
+++ b/t/tests/changelog-file-backport/desc
@@ -3,6 +3,9 @@ Version: 1.0
Description: Check backport
Skeleton: pedantic
Options: --pedantic -I -E
+# Overrides the "data/changes-file/known-dists"
+# data file to avoid updating the test every release
+Profile: lintian-test
Test-For:
backports-upload-has-incorrect-version-number
backports-changes-missing
diff --git a/t/tests/changelog-file-backport/lintian-include-dir/profiles/lintian-test/main.profile b/t/tests/changelog-file-backport/lintian-include-dir/profiles/lintian-test/main.profile
new file mode 100644
index 0000000..f0e27cf
--- /dev/null
+++ b/t/tests/changelog-file-backport/lintian-include-dir/profiles/lintian-test/main.profile
@@ -0,0 +1,2 @@
+Profile: lintian-test/main
+Extends: debian/main
diff --git a/t/tests/changelog-file-backport/lintian-include-dir/vendors/lintian-test/main/data/changes-file/known-dists b/t/tests/changelog-file-backport/lintian-include-dir/vendors/lintian-test/main/data/changes-file/known-dists
new file mode 100644
index 0000000..ebbedbd
--- /dev/null
+++ b/t/tests/changelog-file-backport/lintian-include-dir/vendors/lintian-test/main/data/changes-file/known-dists
@@ -0,0 +1,23 @@
+# A list of Debian distributions, both code names and their aliases
+# - Note that common "extensions"[1] are stripped before checking for the
+# distribution name (except for "sid", "unstable" and "experimental").
+#
+# [1] -backports, -security, -proposed-updates etc. See checks/changes-file
+# for the complete list.
+
+
+# Codenames
+squeeze
+wheezy
+jessie
+stretch
+buster
+sid
+
+# Aliases
+oldstable
+stable
+testing
+unstable
+experimental
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: