perf tools: Don't clone maps from parent when synthesizing forks
[linux/fpc-iii.git] / scripts / kconfig / tests / rand_nested_choice / __init__.py
blobe729a4e85218a12b6b80a79e172a2e223a252b6c
1 """
2 Set random values recursively in nested choices.
4 Kconfig can create a choice-in-choice structure by using 'if' statement.
5 randconfig should correctly set random choice values.
7 Related Linux commit: 3b9a19e08960e5cdad5253998637653e592a3c29
8 """
11 def test(conf):
12 for i in range(20):
13 assert conf.randconfig() == 0
14 assert (conf.config_contains('expected_stdout0') or
15 conf.config_contains('expected_stdout1') or
16 conf.config_contains('expected_stdout2'))