From 726ddc98acc2e88ce4f50ed1a1829a6ed11e781e Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 3 Nov 2015 16:55:21 +0100 Subject: [PATCH] all-tests to properly add '-pending' when needed --- all-tests | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/all-tests b/all-tests index a9fc3c6d..419614a3 100755 --- a/all-tests +++ b/all-tests @@ -14,8 +14,9 @@ output="all-tests.$hash" # if there is any pending change, use another name is_pristine="" -git diff HEAD | cmp --quiet - /dev/zero && is_pristine=true -[ -n "is_pristine" ] || output="$output-pending" +changes=$(git diff HEAD | wc -l); changes=$(echo $changes) +[ "$changes" == 0 ] && is_pristine=true +[ -n "$is_pristine" ] || output="$output-pending" function all_tests () { echo all-tests : begin at; date -- 2.43.0