aboutsummaryrefslogtreecommitdiff
path: root/src/scalarproduct/test_scalarproduct_negativezero.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-12-28 23:47:01 +0100
committerChristian Grothoff <christian@grothoff.org>2020-12-28 23:47:01 +0100
commit38b2445cbe48df349438c50670cf194544897de6 (patch)
treea54fcfe21efecb31a5f6cb2ddfea8a217b594c70 /src/scalarproduct/test_scalarproduct_negativezero.sh
parente30fd985fd765ad25505c3d73d35e8535512ed2e (diff)
downloadgnunet-38b2445cbe48df349438c50670cf194544897de6.tar.gz
gnunet-38b2445cbe48df349438c50670cf194544897de6.zip
fix some linting issues
Diffstat (limited to 'src/scalarproduct/test_scalarproduct_negativezero.sh')
-rwxr-xr-xsrc/scalarproduct/test_scalarproduct_negativezero.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scalarproduct/test_scalarproduct_negativezero.sh b/src/scalarproduct/test_scalarproduct_negativezero.sh
index 1ab7157af..6f80b2ea2 100755
--- a/src/scalarproduct/test_scalarproduct_negativezero.sh
+++ b/src/scalarproduct/test_scalarproduct_negativezero.sh
@@ -22,7 +22,7 @@ PID=$!
22# sleep 1 is too short on most systems, 2 works on most, 5 seems to be safe 22# sleep 1 is too short on most systems, 2 works on most, 5 seems to be safe
23sleep 5 23sleep 5
24 24
25which timeout &> /dev/null && DO_TIMEOUT="timeout 15" 25which timeout >/dev/null 2>&1 && DO_TIMEOUT="timeout 15"
26 26
27# get bob's peer ID, necessary for alice 27# get bob's peer ID, necessary for alice
28PEERIDBOB=`${DO_TIMEOUT} gnunet-peerinfo -qs $CFGBOB` 28PEERIDBOB=`${DO_TIMEOUT} gnunet-peerinfo -qs $CFGBOB`
@@ -36,7 +36,7 @@ RESULT=`${DO_TIMEOUT} gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB`
36kill $PID 36kill $PID
37 37
38EXPECTED="00" 38EXPECTED="00"
39if [ "$RESULT" == "$EXPECTED" ] 39if [ "$RESULT" = "$EXPECTED" ]
40then 40then
41 echo "OK" 41 echo "OK"
42 exit 0 42 exit 0