[Reproducible-commits] [dpkg] 68/90: scripts/t: Delete DEB_VENDOR from the environment to get reliable results

Jérémy Bobbio lunar at moszumanska.debian.org
Sat Aug 29 18:26:17 UTC 2015


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

lunar pushed a commit to branch pu/reproducible_builds
in repository dpkg.

commit c40e5458b70df36767f11828bb51cbba8ae4ebc8
Author: Guillem Jover <guillem at debian.org>
Date:   Tue Aug 4 19:45:27 2015 +0200

    scripts/t: Delete DEB_VENDOR from the environment to get reliable results
---
 debian/changelog        | 1 +
 scripts/t/Dpkg_Vendor.t | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 17ce831..5ea0cd5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -72,6 +72,7 @@ dpkg (1.18.2) UNRELEASED; urgency=low
     - Set SIGINT, SIGTERM and SIGPIPE to their default actions to get
       deterministic behavior.
     - Add test cases for the makefile snippets.
+    - Delete DEB_VENDOR from the environment to get reliable results.
   * Packaging:
     - Make the libdpkg-dev package Multi-Arch:same.
     - Mark libio-string-perl as <!nocheck>.
diff --git a/scripts/t/Dpkg_Vendor.t b/scripts/t/Dpkg_Vendor.t
index aac460e..effc865 100644
--- a/scripts/t/Dpkg_Vendor.t
+++ b/scripts/t/Dpkg_Vendor.t
@@ -18,6 +18,9 @@ use warnings;
 
 use Test::More tests => 6;
 
+# Delete variables that can affect the tests.
+delete $ENV{DEB_VENDOR};
+
 use_ok('Dpkg::Vendor', qw(get_vendor_dir get_current_vendor get_vendor_object));
 
 is(get_vendor_dir(), $ENV{DPKG_ORIGINS_DIR}, 'Check vendor dir');

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



More information about the Reproducible-commits mailing list