From: Steven Rostedt Date: Sat, 21 Jul 2012 02:39:16 +0000 (-0400) Subject: ktest: Reset saved min (force) configs for each test X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c1434dcc57f97b0e533dedb8814a76ef13e702b4;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ktest: Reset saved min (force) configs for each test 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 --- diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl index c8a42d5991be..c444c4fcc8c4 100755 --- a/tools/testing/ktest/ktest.pl +++ b/tools/testing/ktest/ktest.pl @@ -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