From: Junio C Hamano Date: Mon, 8 Aug 2011 21:56:10 +0000 (-0700) Subject: Dothem: skip test if we have tested the same tree already X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4350a1ca1e913f5edabee1ecd26948eef2a2182e;p=thirdparty%2Fgit.git Dothem: skip test if we have tested the same tree already --- diff --git a/Dothem b/Dothem index b8f52c96bf..71bfc59ec3 100755 --- a/Dothem +++ b/Dothem @@ -120,19 +120,29 @@ do fi ( + skip_test=$notest + case ",$version,$revision," in + *,,*) + ;; + *) + if git diff --quiet --exit-code $version $revision + then + skip_test=1 + fi + ;; + esac case "$branch, $branches " in jch,*' next '*) if git diff --quiet --exit-code jch next then - dotest= - else - dotest=test + skip_test=1 fi ;; - *) - dotest=test ;; esac - test -z "$notest" || dotest= + case "$skip_test" in + ?*) dotest= ;; + '') dotest=test ;; + esac cd "$BUILDBASE/$branch" git reset --hard &&