summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/tests/new_choice_with_dep/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/tests/new_choice_with_dep/__init__.py')
-rw-r--r--scripts/kconfig/tests/new_choice_with_dep/__init__.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/kconfig/tests/new_choice_with_dep/__init__.py b/scripts/kconfig/tests/new_choice_with_dep/__init__.py
new file mode 100644
index 0000000000..f0e0ead0f3
--- /dev/null
+++ b/scripts/kconfig/tests/new_choice_with_dep/__init__.py
@@ -0,0 +1,14 @@
+"""
+Ask new choice values when they become visible.
+
+If new choice values are added with new dependency, and they become
+visible during user configuration, oldconfig should recognize them
+as (NEW), and ask the user for choice.
+
+Related Linux commit: 5d09598d488f081e3be23f885ed65cbbe2d073b5
+"""
+
+
+def test(conf):
+ assert conf.oldconfig('config', 'y') == 0
+ assert conf.stdout_contains('expected_stdout')