From 668d3b80a310dfa2850f8b61bca3a15679da5ed1 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 13 Mar 2015 00:53:49 +0100 Subject: Fix examples/allnoconfig.py testsuite hang with v4.0-rc3. Settings the user value to 'y' does not guarantee that the (actual) value will become 'y', as the symbol's visibility still acts as an upper bound on the value. --- examples/allnoconfig_simpler.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'examples/allnoconfig_simpler.py') diff --git a/examples/allnoconfig_simpler.py b/examples/allnoconfig_simpler.py index f4b5c8d..f3cfe9a 100644 --- a/examples/allnoconfig_simpler.py +++ b/examples/allnoconfig_simpler.py @@ -22,9 +22,7 @@ conf = kconfiglib.Config(sys.argv[1]) conf.set_print_warnings(False) for sym in conf: - if sym.is_allnoconfig_y(): - sym.set_user_value('y') - elif sym.get_type() in (kconfiglib.BOOL, kconfiglib.TRISTATE): - sym.set_user_value("n") + if sym.get_type() in (kconfiglib.BOOL, kconfiglib.TRISTATE): + sym.set_user_value("y" if sym.is_allnoconfig_y() else "n") conf.write_config(".config") -- cgit v1.2.3