Force known _tmppath during test-suite non-chroot builds
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 6 Mar 2013 11:29:27 +0000 (13:29 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 7 Jun 2013 07:26:22 +0000 (10:26 +0300)
- Rpm might be configure'd with a _tmppath that isn't writable
  or even existing on the build-host, force our testing tmp directory
  to be used for package builds which cannot be executed within the
  test-root.
- Fixes a few false positives in the test-suite by making it less
  reliant on the configuration of the built rpm and build host
(cherry picked from commit ec00b3f02e3caab77849338bdb6422bf6ab7c306)

tests/atlocal.in

index 5ce6f4f..10ff27a 100644 (file)
@@ -24,7 +24,7 @@ RPM_XFAIL=${RPM_XFAIL-1}
 
 function run()
 {
-    "$@" --define "_topdir ${TOPDIR}" --dbpath="${RPMTEST}/var/lib/rpm/"
+    "$@" --define "_tmppath ${RPMTEST}/tmp" --define "_topdir ${TOPDIR}" --dbpath="${RPMTEST}/var/lib/rpm/"
 }
 
 function runroot()