1# SPDX-License-Identifier: GPL-2.0-only
2"""
3Randomize choices with correct dependencies
4
5When shuffling a choice may potentially disrupt certain dependencies, symbol
6values must be recalculated.
7
8Related Linux commits:
9  - c8fb7d7e48d11520ad24808cfce7afb7b9c9f798
10"""
11
12
13def test(conf):
14    for i in range(20):
15        assert conf.randconfig(seed=i) == 0
16        assert (conf.config_matches('expected_config0') or
17                conf.config_matches('expected_config1') or
18                conf.config_matches('expected_config2'))
19