testenv: test for exit status of "uci export".
[project/uci.git] / test / tests.d / 010_export
index 259f988..584bcc8 100644 (file)
@@ -1,6 +1,14 @@
 test_export ()
 {
        cp ${REF_DIR}/export.data ${CONFIG_DIR}/export
+
+       ${UCI_Q} export nilpackage
+       assertFalse $?
+
+       ${UCI_Q} export export 1>/dev/null 2>&1
+       assertTrue $?
+
        ${UCI} export > ${TMP_DIR}/export.result
+       assertTrue $?
        assertSameFile ${REF_DIR}/export.result ${TMP_DIR}/export.result
 }