From: Cyril Hrubis Date: Fri, 6 Nov 2020 11:31:08 +0100 Subject: [LTP] [PATCH v4 2/2] lib/tst_kconfig: Make use of boolean expression eval In-Reply-To: References: <20201103161052.13260-1-chrubis@suse.cz> <20201103161052.13260-3-chrubis@suse.cz> Message-ID: <20201106103108.GB25324@yuki.lan> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi! > I tried with more complicated configurations for test parsing, most works > as expected but except the below one with parentheses (): > > "CONFIG_DEFAULT_HOSTNAME=\"(none)\"", > > That's because the parentheses are the element of expression and used > to distinguish tokens, I???m not sure whether we can change it as a general > character to fix this problem, if no, we might need to comment on this in > the documentation. Well we would have to teach the tokenizer about strings, i.e. treat everything inside of double quotes as single token. That shouldn't be that hard, I can try to add this later on. -- Cyril Hrubis chrubis@suse.cz