ktest: Reset saved min (force) configs for each test
authorSteven Rostedt <srostedt@redhat.com>
Sat, 21 Jul 2012 02:39:16 +0000 (22:39 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Sat, 21 Jul 2012 02:39:16 +0000 (22:39 -0400)
The min configs are saved in a perl hash called force_configs, and this
hash is used to add configs to the .config file. But it was not being
reset between tests and a min config from a previous test would affect
the min config of the next test causing undesirable results.

Reset the force_config hash at the start of each test.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl

index c8a42d5991be0e6d4dd69da53b8bc23f0995529e..c444c4fcc8c47a7aa020e95c1c432179e170812d 100755 (executable)
@@ -3634,6 +3634,8 @@ for (my $i = 1; $i <= $opt{"NUM_TESTS"}; $i++) {
 
     $iteration = $i;
 
+    undef %force_config;
+
     my $makecmd = set_test_option("MAKE_CMD", $i);
 
     # Load all the options into their mapped variable names
This page took 0.026568 seconds and 5 git commands to generate.