]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ktest: Fix make_min_config test when build fails
authorSteven Rostedt <srostedt@redhat.com>
Mon, 27 Feb 2012 18:58:49 +0000 (13:58 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 27 Feb 2012 18:58:49 +0000 (13:58 -0500)
The make_min_config does not take into account when the build fails,
resulting in a invalid MIN_CONFIG .config file. When the build fails,
it is ignored and the boot test is executed, using the previous built
kernel. The configs that should be tested are not tested and they may
be added or removed depending on the result of the last kernel that
succeeded to be built.

If the build fails, mark the current config as a failure and the
configs that were disabled may still be needed.

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

index 62a134dc421ae37d14307a44f09abc9c0d0c197a..9507c4b251a8e370ae5419ff38f51b9f6ea8d5a0 100755 (executable)
@@ -3244,9 +3244,11 @@ sub make_min_config {
        $in_bisect = 1;
 
        my $failed = 0;
-       build "oldconfig";
-       start_monitor_and_boot or $failed = 1;
-       end_monitor;
+       build "oldconfig" or $failed = 1;
+       if (!$failed) {
+               start_monitor_and_boot or $failed = 1;
+               end_monitor;
+       }
 
        $in_bisect = 0;