From: Felix Fietkau Date: Sun, 30 Aug 2009 15:43:38 +0000 (+0200) Subject: ucimap: properly test bool interpretation X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=commitdiff_plain;h=237a389754d974d579d4c650d65a404b835de5c6;ds=sidebyside ucimap: properly test bool interpretation --- diff --git a/test/config/network b/test/config/network index ec57d7b..b201c48 100644 --- a/test/config/network +++ b/test/config/network @@ -8,7 +8,7 @@ config 'interface' 'lan' option 'proto' 'static' option 'ifname' 'eth0' option 'test' '123' - option 'enabled' 'on' + option 'enabled' 'off' list 'aliases' 'a' list 'aliases' 'b' option 'ipaddr' '2.3.4.5' @@ -16,4 +16,5 @@ config 'interface' 'lan' config 'interface' 'wan' option 'proto' 'dhcp' option 'ifname' 'eth1' + option 'enabled' 'on' diff --git a/test/references/ucimap_example.result b/test/references/ucimap_example.result index d27e49e..c3dfb68 100644 --- a/test/references/ucimap_example.result +++ b/test/references/ucimap_example.result @@ -3,7 +3,7 @@ New network section 'lan' ifname: eth0 ipaddr: 2.3.4.5 test: 123 - enabled: on + enabled: off New alias: b New alias: a New network section 'wan' @@ -11,4 +11,4 @@ New network section 'wan' ifname: eth1 ipaddr: 0.0.0.0 test: -1 - enabled: off + enabled: on