projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
790d306
)
testenv: test for exit status of "uci export".
author
Yousong Zhou
<yszhou4tech@gmail.com>
Wed, 18 Mar 2015 04:44:43 +0000
(12:44 +0800)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 26 Mar 2015 20:37:53 +0000
(21:37 +0100)
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
test/tests.d/010_export
patch
|
blob
|
history
diff --git
a/test/tests.d/010_export
b/test/tests.d/010_export
index 259f988aef718f2047788360332c7b0c59322928..584bcc86bb51e15a80884feccd176051682fe5d8 100644
(file)
--- 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
}