diff options
Diffstat (limited to 'src/scalarproduct/test_scalarproduct.sh')
-rwxr-xr-x | src/scalarproduct/test_scalarproduct.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scalarproduct/test_scalarproduct.sh b/src/scalarproduct/test_scalarproduct.sh index c0401beb7..ed91cd5c4 100755 --- a/src/scalarproduct/test_scalarproduct.sh +++ b/src/scalarproduct/test_scalarproduct.sh | |||
@@ -25,7 +25,7 @@ echo "Waiting for peers to start..." | |||
25 | sleep 5 | 25 | sleep 5 |
26 | echo "Running test..." | 26 | echo "Running test..." |
27 | 27 | ||
28 | which timeout &> /dev/null && DO_TIMEOUT="timeout 15" | 28 | which timeout >/dev/null 2>&1 && DO_TIMEOUT="timeout 15" |
29 | 29 | ||
30 | # get bob's peer ID, necessary for alice | 30 | # get bob's peer ID, necessary for alice |
31 | PEERIDBOB=`${DO_TIMEOUT} gnunet-peerinfo -qs $CFGBOB` | 31 | PEERIDBOB=`${DO_TIMEOUT} gnunet-peerinfo -qs $CFGBOB` |
@@ -38,7 +38,7 @@ RESULT=`${DO_TIMEOUT} gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB` | |||
38 | # terminate the testbed | 38 | # terminate the testbed |
39 | kill $PID | 39 | kill $PID |
40 | 40 | ||
41 | if [ "$RESULT" == "$EXPECTED" ] | 41 | if [ "$RESULT" = "$EXPECTED" ] |
42 | then | 42 | then |
43 | echo "OK" | 43 | echo "OK" |
44 | exit 0 | 44 | exit 0 |