[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: t: Fix test under reproducible builds



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit ba3ec34fe321fafa36a7c1813117762ce41067b1
Author: Niels Thykier <niels@thykier.net>
Date:   Thu May 21 07:41:57 2015 +0200

    t: Fix test under reproducible builds
    
    One of our tests fails in a reproducibile build because such builds
    include an architecture dependent buildinfo file.  The presence of
    that file will cause the changes file to include the build
    architecture in the architecture field and accordingly change the
    output of lintian.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/tests/lintian-output-xml/post_test | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/t/tests/lintian-output-xml/post_test b/t/tests/lintian-output-xml/post_test
new file mode 100644
index 0000000..bdde9e4
--- /dev/null
+++ b/t/tests/lintian-output-xml/post_test
@@ -0,0 +1,4 @@
+# Under reproducible builds, we also get an architecture dependent
+# (buildinfo) file.  This causes the archiecture field of the changes
+# file to change.  This little script fixes that.
+s/architecture="source all ([^"]*)"/architecture="source all"/

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: