]> www.infradead.org Git - users/dedekind/aiaiai.git/commitdiff
aiaiai: test all patches when testing bisection
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 8 Sep 2014 23:55:08 +0000 (16:55 -0700)
committerJacob Keller <jacob.e.keller@intel.com>
Tue, 9 Sep 2014 00:06:59 +0000 (17:06 -0700)
Instead of only testing until a patch series fails, we should test every
patch. This provides more information, and does not seriously harm the
output. To take advantage of this, we also have to modify our check for
"base commit failed but it is fixed in the first patch". We simply say
that the base commit failed and is fixed as long as the series has no
failures.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
helpers/aiaiai-test-bisectability

index 66d5cc57918e5a9732cc17ccbb54ac2861ff33dc..b5e0f4396552b10c18d7b0a721ef8f0b23a651b2 100755 (executable)
@@ -251,6 +251,7 @@ if build_failed "$base_stderr_log"; then
 fi
 
 n=0
+series_failed_bisect=
 while [ "$n" -lt "$patch_cnt" ]; do
        formail +$n -1 -s < "$mbox" > "$tmp_mbox"
        compile_patch "$tmp_mbox" "$stdout_log" "$stderr_log"
@@ -264,10 +265,10 @@ while [ "$n" -lt "$patch_cnt" ]; do
                        printf "\n\n"
                fi
                build_failure "$defconfig_orig" "HEAD" "patch #$n"< "$stderr_log"
-               exit 0
+               series_failed_bisect="yes"
        fi
 done
 
-if [ -n "$base_commit_failed" ]; then
-       printf "%s\n" "Base commit build failed, but the first patch fixed the build failure."
+if [ -n "$base_commit_failed" ] && [ -z "$series_failed_bisect" ]; then
+       printf "%s\n" "Base commit build failed, but the series fixed the build failure."
 fi