diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-11-21 17:39:39 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-11-21 17:59:41 +0200 |
commit | db6c332c49885163de3b83e200e0b40dcac05dc3 (patch) | |
tree | fd7a7cf24065a0b5429006423720e7528d0bda13 /tests/rpmdb.at | |
parent | ddf59da4183f578cf1b7238892776bd64340282f (diff) | |
download | librpm-tizen-db6c332c49885163de3b83e200e0b40dcac05dc3.tar.gz librpm-tizen-db6c332c49885163de3b83e200e0b40dcac05dc3.tar.bz2 librpm-tizen-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/rpmdb.at')
-rw-r--r-- | tests/rpmdb.at | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/rpmdb.at b/tests/rpmdb.at index d75ca61d3..d95d017c1 100644 --- a/tests/rpmdb.at +++ b/tests/rpmdb.at @@ -35,8 +35,7 @@ AT_SETUP([rpm -qa]) AT_CHECK([ RPMDB_CLEAR RPMDB_INIT -rpm \ - --rcfile="${RPMRC}" \ +run rpm \ --root="${abs_builddir}"/testing \ -qa ], @@ -53,8 +52,7 @@ AT_CHECK([ RPMDB_CLEAR RPMDB_INIT -rpm -i \ - --rcfile="${RPMRC}" \ +run rpm -i \ --root="${abs_builddir}"/testing \ "${abs_srcdir}"/data/RPMS/foo-1.0-1.noarch.rpm ], @@ -72,8 +70,7 @@ AT_CHECK([ RPMDB_CLEAR RPMDB_INIT -rpm -i \ - --rcfile="${RPMRC}" \ +run rpm -i \ --root="${abs_builddir}"/testing \ --nodeps --ignorearch --relocate=/usr="${abs_builddir}"/testing/check \ "${abs_srcdir}"/data/RPMS/hello-1.0-1.i386.rpm @@ -92,8 +89,7 @@ AT_CHECK([ RPMDB_CLEAR RPMDB_INIT -rpm -i \ - --rcfile="${RPMRC}" \ +run rpm -i \ --root="${abs_builddir}"/testing \ --nodeps --ignorearch --relocate=/usr="${abs_builddir}"/testing/check \ "${abs_srcdir}"/data/RPMS/hello-1.0-1.ppc64.rpm |