From a3252f620fad970bbe8b7470401a04ee4225193e Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Tue, 21 Aug 2018 20:55:29 +0200 Subject: Merge Symbol._checked and Symbol._written These are never used at the same time, and Symbol._visited is a good name for both. Gets rid of an internal attribute. --- testsuite.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'testsuite.py') diff --git a/testsuite.py b/testsuite.py index 7f1ccfe..eef8389 100644 --- a/testsuite.py +++ b/testsuite.py @@ -2461,6 +2461,11 @@ def test_sanity(arch, srcarch): kconf = Kconfig() + for sym in kconf.defined_syms: + verify(sym._visited == 2, + "{} has broken dependency loop detection (_visited = {})" + .format(sym.name, sym._visited)) + kconf.modules kconf.defconfig_list kconf.defconfig_filename @@ -2512,14 +2517,10 @@ def test_sanity(arch, srcarch): sym.visibility for sym in kconf.defined_syms: - verify(sym.nodes, sym.name + " is defined but lacks menu nodes") - - verify(not (sym.orig_type not in (BOOL, TRISTATE) and sym.choice), - sym.name + " is a choice symbol but not bool/tristate") + verify(sym.nodes, sym.name + " is defined but lacks menu nodes") - verify(sym._checked == 2, - "{} has broken dependency loop detection (_checked = {})" - .format(sym.name, sym._checked)) + verify(not (sym.orig_type not in (BOOL, TRISTATE) and sym.choice), + sym.name + " is a choice symbol but not bool/tristate") for key, sym in kconf.const_syms.items(): verify(isinstance(key, str), -- cgit v1.2.3