From 500c6a13eafb5a3852fd91d9296ab4139a6f38d4 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 1 Apr 2011 17:44:35 +0300 Subject: [PATCH] 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 --- tests/local.at | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/local.at b/tests/local.at index b299a77..b90855b 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 -- 2.7.4