projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2660a91
)
Fix condition for error message of signature script
author
ianfab
<ianfab@users.noreply.github.com>
Wed, 25 Jul 2018 19:02:28 +0000 (21:02 +0200)
committer
Stéphane Nicolet
<cassio@free.fr>
Fri, 27 Jul 2018 08:16:33 +0000 (10:16 +0200)
Use obtained bench instead of reference bench when checking for crash.
No functional change.
tests/signature.sh
patch
|
blob
|
history
diff --git
a/tests/signature.sh
b/tests/signature.sh
index
6f5957a
..
2e5c183
100755
(executable)
--- 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 ."