summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2013-01-31 15:55:22 +0200
committerPanu Matilainen <pmatilai@redhat.com>2013-01-31 16:30:25 +0200
commita925476eb47d0716501192d06f6d9ef50e6c5bbb (patch)
treee5fecedd2893131899b4c1330d3694eccbac778e /tests
parentc83a48c429617f1ac7bdf31f336008d537d3545f (diff)
downloadlibrpm-tizen-a925476eb47d0716501192d06f6d9ef50e6c5bbb.tar.gz
librpm-tizen-a925476eb47d0716501192d06f6d9ef50e6c5bbb.tar.bz2
librpm-tizen-a925476eb47d0716501192d06f6d9ef50e6c5bbb.zip
Adjust ghost config test case to match legacy behavior
- Rpm has traditionally (at least for the last decade) preserved existing %ghost %config file on erasure. Whether this was intentional or not, changing the behavior now risks data loss in case people are relying on this long-standing behavior. - This fails now: The behavior changed as (an unexpected) side-effect of commit 389b1ab706be8eddba9f00c7084759f670ce96ac. (cherry picked from commit 4efec66338ef04d2f1ed20cfba84c47145269d0d)
Diffstat (limited to 'tests')
-rw-r--r--tests/rpmconfig.at9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/rpmconfig.at b/tests/rpmconfig.at
index 80323bc10..91c03ba57 100644
--- a/tests/rpmconfig.at
+++ b/tests/rpmconfig.at
@@ -818,7 +818,8 @@ cat "${cf}"
runroot rpm -U "${TOPDIR}"/RPMS/noarch/configtest-1.0-1.noarch.rpm
cat "${cf}"
runroot rpm -e configtest
-test ! -f "${cf}" && echo OK1
+cat "${cf}"
+rm -f "${cf}"
# post-install config, upgrade, erase
runroot rpm -U "${TOPDIR}"/RPMS/noarch/configtest-1.0-1.noarch.rpm
@@ -828,17 +829,17 @@ cat "${cf}"
runroot rpm -U "${TOPDIR}"/RPMS/noarch/configtest-2.0-1.noarch.rpm
cat "${cf}"
runroot rpm -e configtest
-test ! -f "${cf}" && echo OK2
+cat "${cf}"
],
[],
[OK1
keaton
keaton
-OK1
+keaton
OK2
buster
buster
-OK2
+buster
],
[])
AT_CLEANUP