t3419 sets the t3419-rebase-patch-id.sh prereq based on the availability
of /usr/bin/time but calls the binary unconditionally (in debug mode).

Make it run the timing only when the prereq is matched.

Signed-off-by: Michael J Gruber <g...@drmicha.warpmail.net>
---
 t/t3419-rebase-patch-id.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/t3419-rebase-patch-id.sh b/t/t3419-rebase-patch-id.sh
index e70ac10..52af547 100755
--- a/t/t3419-rebase-patch-id.sh
+++ b/t/t3419-rebase-patch-id.sh
@@ -69,7 +69,7 @@ do_tests()
                git cherry-pick master >/dev/null 2>&1
        "
 
-       test_debug "
+       test_have_prereq USR_BIN_TIME && test_debug "
                run git diff master^\!
        "
 
@@ -77,7 +77,7 @@ do_tests()
                echo 'file binary' >.gitattributes
        "
 
-       test_debug "
+       test_have_prereq USR_BIN_TIME && test_debug "
                run git format-patch --stdout master &&
                run git format-patch --stdout --ignore-if-in-upstream master
        "
-- 
1.8.0.rc2.304.g9f3ac5c

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to