From: Yousong Zhou Date: Wed, 18 Mar 2015 04:44:43 +0000 (+0800) Subject: testenv: test for exit status of "uci export". X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=90ba7cac9dc74210424d8b09229cdd29571fbcc1;p=oweals%2Fuci.git testenv: test for exit status of "uci export". Signed-off-by: Yousong Zhou --- diff --git a/test/tests.d/010_export b/test/tests.d/010_export index 259f988..584bcc8 100644 --- a/test/tests.d/010_export +++ b/test/tests.d/010_export @@ -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 }