summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-04-01 17:48:07 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-04-01 17:50:08 +0300
commit27e8417cf3fdf5dbe0d64316dbee9a82b5039a42 (patch)
treead60d5dad36f2dc9554627e62afc079baa40e7fc
parent500c6a13eafb5a3852fd91d9296ab4139a6f38d4 (diff)
downloadrpm-27e8417cf3fdf5dbe0d64316dbee9a82b5039a42.tar.gz
rpm-27e8417cf3fdf5dbe0d64316dbee9a82b5039a42.tar.bz2
rpm-27e8417cf3fdf5dbe0d64316dbee9a82b5039a42.zip
Adjust rpmdb path for all remaining non-fakeroot runs
- Executing rpmbuild in the fakeroot gets fairly tricky, especially for the tests that actually compile things. Overriding the dbpath prevents it from accessing system rpmdb for keyring and build-requires. - With this patch, the test-suite now passes the smoke-test of "chmod go-rx /var/lib/rpm" on system rpmdb.
-rw-r--r--tests/atlocal.in2
-rw-r--r--tests/local.at2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in
index d0ea0c8d3..fecd950c1 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -24,7 +24,7 @@ RPM_XFAIL=${RPM_XFAIL-1}
function run()
{
- "$@" --define "_topdir ${TOPDIR}"
+ "$@" --define "_topdir ${TOPDIR}" --dbpath="${RPMTEST}/var/lib/rpm/"
}
function runroot()
diff --git a/tests/local.at b/tests/local.at
index b90855b41..2ab131937 100644
--- a/tests/local.at
+++ b/tests/local.at
@@ -5,7 +5,7 @@ runroot rpm --initdb
]])
m4_define([RPMDB_CLEAR],[[
-rm -rf "${abs_builddir}"/testing`run rpm --eval '%_dbpath'`/*
+rm -rf "${abs_builddir}"/testing`rpm --eval '%_dbpath'`/*
]])
m4_define([RPMPY_RUN],[