summaryrefslogtreecommitdiff
path: root/testsuite.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2015-06-17 23:32:49 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2015-06-17 23:33:42 +0200
commit7f1ae0f76b7a0bdee46786e937781b9e0082d2e0 (patch)
tree408e9422c557368679baafc748fc32e4f636480f /testsuite.py
parent1627d43eeba211fea7f9da439467dcad5955df79 (diff)
Do not unset user values before the first test.
Redundant, plus we get more coverage for the default state.
Diffstat (limited to 'testsuite.py')
-rw-r--r--testsuite.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/testsuite.py b/testsuite.py
index 1138f60..d1ba627 100644
--- a/testsuite.py
+++ b/testsuite.py
@@ -1826,11 +1826,15 @@ def run_compatibility_tests():
os.environ.pop(var, None)
shell("make allnoconfig")
+ first_arch_test = True
+
for (test_fn, compare_configs) in all_arch_tests:
- print("\nUnsetting user values on all architecture Config instances "
- "prior to next test...")
- for arch in arch_configs:
- arch.unset_user_values()
+ if not first_arch_test:
+ print("\nUnsetting user values on all architecture Config "
+ "instances prior to the next test...")
+ for arch in arch_configs:
+ arch.unset_user_values()
+ first_arch_test = False
# The test description is taken from the docstring of the corresponding
# function