]> git.saurik.com Git - apt.git/commitdiff
add BUILDDIRECTORY to PATH in the tests
authorMichael Vogt <mvo@debian.org>
Wed, 7 May 2014 20:05:26 +0000 (22:05 +0200)
committerMichael Vogt <mvo@debian.org>
Wed, 7 May 2014 20:05:26 +0000 (22:05 +0200)
test/integration/framework

index 3b900a96086496b3e869551e2deb5a6ff023e92c..7c5da369464f4ae12cad4766c4251ffb2ad1baa8 100644 (file)
@@ -241,7 +241,8 @@ setupenvironment() {
        gpg --quiet --check-trustdb --secret-keyring $SECRETKEYRING --keyring $SECRETKEYRING >/dev/null 2>&1
 
        # cleanup the environment a bit
-       export PATH="${PATH}:/usr/local/sbin:/usr/sbin:/sbin"
+        # prefer our apt binaries over the system apt binaries
+       export PATH="${BUILDDIRECTORY}:${PATH}:/usr/local/sbin:/usr/sbin:/sbin"
        export LC_ALL=C.UTF-8
        unset LANGUAGE APT_CONFIG
        unset GREP_OPTIONS DEB_BUILD_PROFILES