From b679b1452d6513c0769928a2238ccd367c2b78f7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 31 Mar 2020 08:07:02 +0200 Subject: Handle duplicate config directives for same variable --- tests/directive/config.testscript | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/directive') diff --git a/tests/directive/config.testscript b/tests/directive/config.testscript index f77a098..e84ca0a 100644 --- a/tests/directive/config.testscript +++ b/tests/directive/config.testscript @@ -180,6 +180,8 @@ test.arguments = config [string, config.report.variable=e] config.test.e ?= abc config [ config.report] f config [bool] config.test.n ?= [null] + config [bool] config.test.p + config [bool] config.test.p ?= true e = "'$config.test.e'" f = ($config.test.b || $config.test.c) @@ -206,11 +208,16 @@ test.arguments = e 'abc' f true n [null] + p true EOO # Configured. # - $* configure config.test.a=true config.test.e=xyz config.test.n=true; + $* configure \ + config.test.a=true \ + config.test.e=xyz \ + config.test.n=true \ + config.test.p=false; $* noop -v; $* noop -V 2>>~/EOO/; /config test@.+/ @@ -223,6 +230,7 @@ test.arguments = e 'xyz' f true n true + p false EOO $* disfigure } -- cgit v1.1