diff options
| author | ulfalizer <ulfalizer@gmail.com> | 2015-03-13 01:04:08 +0100 |
|---|---|---|
| committer | ulfalizer <ulfalizer@gmail.com> | 2015-03-13 01:04:08 +0100 |
| commit | 5cc87664ae6fe0b05b6f2d3cc98aae864f9eafb0 (patch) | |
| tree | 9d475f7735d0ff7202ffee933fade87ee1d22de3 /examples/allnoconfig.py | |
| parent | cad5853418f4d080e6191e92f0f5d8042d0f8ea8 (diff) | |
| parent | 589d9b7fc305848df64b73eeac6bdfd76de7ce34 (diff) | |
Merge pull request #14 from philipc/linux-3.19
Fixes to make testsuite pass
Diffstat (limited to 'examples/allnoconfig.py')
| -rw-r--r-- | examples/allnoconfig.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/allnoconfig.py b/examples/allnoconfig.py index d017355..3d3b3c1 100644 --- a/examples/allnoconfig.py +++ b/examples/allnoconfig.py @@ -13,9 +13,15 @@ while not done: done = True for sym in conf: + if sym.is_allnoconfig_y(): + if sym.get_value() != 'y': + sym.set_user_value('y') + # We just changed the value of some symbol. As this may affect + # other symbols, keep going. + done = False # Choices take care of themselves for allnoconfig, so we only need to # worry about non-choice symbols - if not sym.is_choice_symbol(): + elif not sym.is_choice_symbol(): # If we can assign a value to the symbol (where "n", "m" and "y" # are ordered from lowest to highest), then assign the lowest # value. lower_bound() returns None for symbols whose values cannot |
