From: Thierry Parmentelat Date: Tue, 3 Nov 2015 15:55:21 +0000 (+0100) Subject: all-tests to properly add '-pending' when needed X-Git-Tag: nepi-6.0.0-pypi~11 X-Git-Url: http://git.onelab.eu/?p=nepi.git;a=commitdiff_plain;h=726ddc98acc2e88ce4f50ed1a1829a6ed11e781e all-tests to properly add '-pending' when needed --- 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