summaryrefslogtreecommitdiff
path: root/kconfigtest.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2012-12-11 11:49:55 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2012-12-11 11:49:55 +0100
commit52745ee2f23470a9da73769f61847c8435eedd13 (patch)
tree2328d2d3184c0b409de64958107718caac0ab5fc /kconfigtest.py
parentf7cc4fbcc769b23dad05ad0b8d21ec650ac01037 (diff)
Make get_defconfig_filename() selftest more comprehensive.
Diffstat (limited to 'kconfigtest.py')
-rw-r--r--kconfigtest.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/kconfigtest.py b/kconfigtest.py
index fc4bc94..088b456 100644
--- a/kconfigtest.py
+++ b/kconfigtest.py
@@ -490,8 +490,14 @@ def run_selftests():
"get_defconfig_filename() should be None when none of the files "
"in the defconfig_list symbol exist")
- # Referenced in Kdefconfig_existent
+ # Referenced in Kdefconfig_existent(_but_n)
os.environ["BAR"] = "defconfig_2"
+
+ c = kconfiglib.Config("Kconfiglib/tests/Kdefconfig_existent_but_n")
+ verify(c.get_defconfig_filename() is None,
+ "get_defconfig_filename() should be None when the condition is "
+ "n for all the defaults")
+
c = kconfiglib.Config("Kconfiglib/tests/Kdefconfig_existent")
verify(c.get_defconfig_filename() == "Kconfiglib/tests/defconfig_2",
"get_defconfig_filename() should return the existent file "