Преглед изворни кода

scripts/t: Delete DEB_VENDOR from the environment to get reliable results

Guillem Jover пре 11 година
родитељ
комит
c40e5458b7
2 измењених фајлова са 4 додато и 0 уклоњено
  1. 1 0
      debian/changelog
  2. 3 0
      scripts/t/Dpkg_Vendor.t

+ 1 - 0
debian/changelog

@@ -72,6 +72,7 @@ dpkg (1.18.2) UNRELEASED; urgency=low
     - Set SIGINT, SIGTERM and SIGPIPE to their default actions to get
     - Set SIGINT, SIGTERM and SIGPIPE to their default actions to get
       deterministic behavior.
       deterministic behavior.
     - Add test cases for the makefile snippets.
     - Add test cases for the makefile snippets.
+    - Delete DEB_VENDOR from the environment to get reliable results.
   * Packaging:
   * Packaging:
     - Make the libdpkg-dev package Multi-Arch:same.
     - Make the libdpkg-dev package Multi-Arch:same.
     - Mark libio-string-perl as <!nocheck>.
     - Mark libio-string-perl as <!nocheck>.

+ 3 - 0
scripts/t/Dpkg_Vendor.t

@@ -18,6 +18,9 @@ use warnings;
 
 
 use Test::More tests => 6;
 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));
 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');
 is(get_vendor_dir(), $ENV{DPKG_ORIGINS_DIR}, 'Check vendor dir');