X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=tests%2Fsignature.sh;fp=tests%2Fsignature.sh;h=2e5c183a073cc8094ffb5f06e2526e01999a4c6a;hp=6f5957a4b0402b3732108d1d1c0b93ee45a1d48b;hb=d44701be4b96164d716e5fcf1a811cb6fd5f3b5e;hpb=2660a9145ef23bb51daa4aa35ff502c5f935c9aa diff --git a/tests/signature.sh b/tests/signature.sh index 6f5957a4..2e5c183a 100755 --- a/tests/signature.sh +++ b/tests/signature.sh @@ -16,7 +16,7 @@ signature=`./stockfish bench 2>&1 | grep "Nodes searched : " | awk '{print $4}' if [ $# -gt 0 ]; then # compare to given reference if [ "$1" != "$signature" ]; then - if [ "x$1" == "x" ]; then + if [ -z "$signature" ]; then echo "No signature obtained from bench. Code crashed or assert triggered ?" else echo "signature mismatch: reference $1 obtained: $signature ."