From 237a389754d974d579d4c650d65a404b835de5c6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 30 Aug 2009 17:43:38 +0200 Subject: [PATCH] ucimap: properly test bool interpretation --- test/config/network | 3 ++- test/references/ucimap_example.result | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.41.1