Preserve original permissions when rewriting config files on commit
[oweals/uci.git] / test / tests.d / 060-ucimap_example
1 test_ucimap_example()
2 {
3         rm -rf ./save
4         ( cd ..; ./ucimap-example -s ) > "${TMP_DIR}/ucimap_example.result"
5         assertSameFile "${TMP_DIR}/ucimap_example.result" "${REF_DIR}/ucimap_example_1.result"
6         ( cd ..; ./ucimap-example -s ) > "${TMP_DIR}/ucimap_example.result"
7         assertSameFile "${TMP_DIR}/ucimap_example.result" "${REF_DIR}/ucimap_example_2.result"
8         rm -rf ./save
9 }