Skip to content

Commit

Permalink
Fix test 226
Browse files Browse the repository at this point in the history
"--noreplace" was omited and results were set according to the wrong
test (+ spelling).
  • Loading branch information
pavlinamv authored and pmatilai committed Feb 13, 2017
1 parent b4df891 commit f71874d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/rpmconfig.at
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ otherstuff
AT_CLEANUP

# Install over existing config file
AT_SETUP([install config(noreplace) on existiting file])
AT_SETUP([install config(noreplace) on existing file])
AT_KEYWORDS([install])
AT_CHECK([
RPMDB_CLEAR
Expand All @@ -44,19 +44,25 @@ rm -rf "${TOPDIR}"
runroot rpmbuild --quiet -bb \
--define "ver 1.0" \
--define "filedata foo" \
--define "noreplace 1" \
/data/SPECS/configtest.spec

echo "otherstuff" > "${cf}"
runroot rpm -U /build/RPMS/noarch/configtest-1.0-1.noarch.rpm
cat "${cf}"
cat "${cf}.rpmnew"
runroot rpm -e configtest
cat "${cf}.rpmorig"
cat "${cf}.rpmsave"
cat "${cf}.rpmnew"
],
[0],
[foo
[otherstuff
foo
otherstuff
foo
],
[warning: /etc/my.conf saved as /etc/my.conf.rpmorig]
[warning: /etc/my.conf created as /etc/my.conf.rpmnew
warning: /etc/my.conf saved as /etc/my.conf.rpmsave]
)
AT_CLEANUP

Expand Down

0 comments on commit f71874d

Please sign in to comment.