summaryrefslogtreecommitdiff
path: root/tests/atlocal.in
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-11-21 17:39:39 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-11-21 17:59:41 +0200
commitdb6c332c49885163de3b83e200e0b40dcac05dc3 (patch)
treefd7a7cf24065a0b5429006423720e7528d0bda13 /tests/atlocal.in
parentddf59da4183f578cf1b7238892776bd64340282f (diff)
downloadrpm-db6c332c49885163de3b83e200e0b40dcac05dc3.tar.gz
rpm-db6c332c49885163de3b83e200e0b40dcac05dc3.tar.bz2
rpm-db6c332c49885163de3b83e200e0b40dcac05dc3.zip
Add + use wrapper function for calling rpm commands in tests
- avoids having to define --rcfile etc over and over again
Diffstat (limited to 'tests/atlocal.in')
-rw-r--r--tests/atlocal.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in
index 7c5034c96..484a6210e 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -11,3 +11,10 @@ RPMRC="${abs_builddir}/testing@RPMCONFIGDIR@/rpmrc"
TOPDIR="${abs_builddir}/testing/build"
RPM_XFAIL=${RPM_XFAIL-1}
+
+function run()
+{
+ cmd="$1"
+ shift
+ "${cmd}" --rcfile="${RPMRC}" --define "_topdir ${TOPDIR}" $*
+}