Debian Codegraph @

tests/pkgos_func/deprecate_directive/test_already_fixed

raw
1 #!/bin/sh
2
3 set -e
4
5 . ../../../pkgos_func
6 . ../../../tests/osstt
7
8 cp example-after-old-existing.ini example-result.ini
9 pkgos_deprecate_directive example-result.ini old_section old_directive new_section new_directive
10 osstt_assertFilesAreSame example-result.ini example-after-old-existing.ini
11 #rm example-result.ini
12 if [ "${RET}" = "yes" ] ; then
13 exit 0
14 else
15 echo "pkgos_deprecate_directive did something on an already valid file"
16 exit 1
17 fi