summaryrefslogtreecommitdiff
path: root/tests/local.at
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-04-01 17:44:35 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-04-01 17:44:35 +0300
commit500c6a13eafb5a3852fd91d9296ab4139a6f38d4 (patch)
tree00d995a2cf2b53e87ccb759eeafcf3ffb15e6cab /tests/local.at
parentf5b288fef63f471a2b347698946547a08f277610 (diff)
downloadrpm-500c6a13eafb5a3852fd91d9296ab4139a6f38d4.tar.gz
rpm-500c6a13eafb5a3852fd91d9296ab4139a6f38d4.tar.bz2
rpm-500c6a13eafb5a3852fd91d9296ab4139a6f38d4.zip
Adjust rpmdb path in python tests
- We can't run python easily in the chroot so override the dbpath to our test area instead of potentially accessing the system db for keyring etc
Diffstat (limited to 'tests/local.at')
-rw-r--r--tests/local.at2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/local.at b/tests/local.at
index b299a7778..b90855b41 100644
--- a/tests/local.at
+++ b/tests/local.at
@@ -11,6 +11,8 @@ rm -rf "${abs_builddir}"/testing`run rpm --eval '%_dbpath'`/*
m4_define([RPMPY_RUN],[
cat << EOF > test.py
import rpm, sys
+dbpath=rpm.expandMacro('%_dbpath')
+rpm.addMacro('_dbpath', '${abs_builddir}/testing%s' % dbpath)
def myprint(msg = ''):
sys.stdout.write('%s\n' % msg)
$1