From: Panu Matilainen Date: Wed, 1 Jun 2011 06:35:47 +0000 (+0300) Subject: Make test-case for --replacepkgs stricter X-Git-Tag: tznext/4.11.0.1.tizen20130304~1044 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=caa23a97729e7a6e15f26c0722f9ba0e773d3b6c;p=tools%2Flibrpm-tizen.git Make test-case for --replacepkgs stricter - Actually verify we got the expected result, ie exactly one instance of the pkg installed after successful reinstall. --- diff --git a/tests/rpmdb.at b/tests/rpmdb.at index d73e4ef..cecd355 100644 --- a/tests/rpmdb.at +++ b/tests/rpmdb.at @@ -73,9 +73,14 @@ RPMDB_INIT tpkg="/data/RPMS/foo-1.0-1.noarch.rpm" -runroot rpm -i "${tpkg}" && runroot rpm -U --replacepkgs "${tpkg}" +runroot rpm -i "${tpkg}" && + runroot rpm -U --replacepkgs "${tpkg}" && + runroot rpm -qa ], -[0]) +[0], +[foo-1.0-1.noarch +], +[]) AT_CLEANUP