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 389b1ab706.
This commit is contained in:
Panu Matilainen 2013-01-31 15:55:22 +02:00
parent 147a26c5f6
commit 4efec66338
1 changed files with 5 additions and 4 deletions

View File

@ -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