summaryrefslogtreecommitdiff
path: root/kconfigtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'kconfigtest.py')
-rw-r--r--kconfigtest.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/kconfigtest.py b/kconfigtest.py
index 7927484..e0fae52 100644
--- a/kconfigtest.py
+++ b/kconfigtest.py
@@ -541,6 +541,10 @@ def run_selftests():
print "Testing get_user_value()..."
+ # Avoid warnings from assigning invalid user values and assigning user
+ # values to symbols without prompts
+ c.set_print_warnings(False)
+
syms = [c[name] for name in \
("BOOL", "TRISTATE", "STRING", "INT", "HEX")]
b, t, s, i, h = syms
@@ -571,8 +575,6 @@ def run_selftests():
# Assign invalid values for the types. They should retain their old user
# value.
- c.set_print_warnings(False)
-
assign_and_verify_new_user_value(b, "m", "y")
assign_and_verify_new_user_value(b, "foo", "y")
assign_and_verify_new_user_value(b, "1", "y")