Skip to content

Commit

Permalink
ktest: Reset saved min (force) configs for each test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Jul 21, 2012
1 parent 8a80c72 commit c1434dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/testing/ktest/ktest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3634,6 +3634,8 @@ sub set_test_option {

$iteration = $i;

undef %force_config;

my $makecmd = set_test_option("MAKE_CMD", $i);

# Load all the options into their mapped variable names
Expand Down

0 comments on commit c1434dc

Please sign in to comment.