tests/pkgos_func/remove_section/test_remove_section
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | . ../../../pkgos_func |
| 6 | . ../../../tests/osstt |
| 7 | |
| 8 | cp example.ini example-result.ini |
| 9 | pkgos_remove_section example-result.ini old_section |
| 10 | osstt_assertFilesAreSame example-result.ini example-after-remove-section.ini |
| 11 | rm example-result.ini |
| 12 | if [ "${RET}" = "yes" ] ; then |
| 13 | exit 0 |
| 14 | else |
| 15 | echo "pkgos_remove_section didn't remove a section correctly" |
| 16 | exit 1 |
| 17 | fi |