[OpenWrt-Devel] [PATCH 1/3] testenv: test for exit status of "uci export".

Yousong Zhou yszhou4tech at gmail.com
Sat Mar 7 10:17:43 EST 2015


Signed-off-by: Yousong Zhou <yszhou4tech at gmail.com>
---
 test/tests.d/010_export |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/test/tests.d/010_export b/test/tests.d/010_export
index 259f988..beb0f6c 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
-	assertSameFile ${REF_DIR}/export.result ${TMP_DIR}/export.result
+	assertTrue $?
+	#assertSameFile ${REF_DIR}/export.result ${TMP_DIR}/export.result
 }
-- 
1.7.10.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list