diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-12-28 23:47:01 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-12-28 23:47:01 +0100 |
commit | 38b2445cbe48df349438c50670cf194544897de6 (patch) | |
tree | a54fcfe21efecb31a5f6cb2ddfea8a217b594c70 /src/scalarproduct | |
parent | e30fd985fd765ad25505c3d73d35e8535512ed2e (diff) | |
download | gnunet-38b2445cbe48df349438c50670cf194544897de6.tar.gz gnunet-38b2445cbe48df349438c50670cf194544897de6.zip |
fix some linting issues
Diffstat (limited to 'src/scalarproduct')
-rwxr-xr-x | src/scalarproduct/test_scalarproduct.sh | 4 | ||||
-rwxr-xr-x | src/scalarproduct/test_scalarproduct_negative.sh | 4 | ||||
-rwxr-xr-x | src/scalarproduct/test_scalarproduct_negativezero.sh | 4 |
3 files changed, 6 insertions, 6 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 |
diff --git a/src/scalarproduct/test_scalarproduct_negative.sh b/src/scalarproduct/test_scalarproduct_negative.sh index cbeb1b9fd..b08e4527f 100755 --- a/src/scalarproduct/test_scalarproduct_negative.sh +++ b/src/scalarproduct/test_scalarproduct_negative.sh | |||
@@ -11,7 +11,7 @@ PREFIX=/tmp/test-scalarproduct`date +%H%M%S` | |||
11 | CFGALICE="-c $PREFIX/0/config" | 11 | CFGALICE="-c $PREFIX/0/config" |
12 | CFGBOB="-c $PREFIX/1/config" | 12 | CFGBOB="-c $PREFIX/1/config" |
13 | 13 | ||
14 | which timeout &> /dev/null && DO_TIMEOUT="timeout 15" | 14 | which timeout >/dev/null 2>&1 && DO_TIMEOUT="timeout 15" |
15 | 15 | ||
16 | # launch two peers in line topology non-interactively | 16 | # launch two peers in line topology non-interactively |
17 | # | 17 | # |
@@ -36,7 +36,7 @@ RESULT=`${DO_TIMEOUT} gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB` | |||
36 | kill $PID | 36 | kill $PID |
37 | 37 | ||
38 | EXPECTED="-0CCC" | 38 | EXPECTED="-0CCC" |
39 | if [ "$RESULT" == "$EXPECTED" ] | 39 | if [ "$RESULT" = "$EXPECTED" ] |
40 | then | 40 | then |
41 | echo "OK" | 41 | echo "OK" |
42 | exit 0 | 42 | exit 0 |
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 |
23 | sleep 5 | 23 | sleep 5 |
24 | 24 | ||
25 | which timeout &> /dev/null && DO_TIMEOUT="timeout 15" | 25 | which 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 |
28 | PEERIDBOB=`${DO_TIMEOUT} gnunet-peerinfo -qs $CFGBOB` | 28 | PEERIDBOB=`${DO_TIMEOUT} gnunet-peerinfo -qs $CFGBOB` |
@@ -36,7 +36,7 @@ RESULT=`${DO_TIMEOUT} gnunet-scalarproduct $CFGALICE $INPUTALICE -p $PEERIDBOB` | |||
36 | kill $PID | 36 | kill $PID |
37 | 37 | ||
38 | EXPECTED="00" | 38 | EXPECTED="00" |
39 | if [ "$RESULT" == "$EXPECTED" ] | 39 | if [ "$RESULT" = "$EXPECTED" ] |
40 | then | 40 | then |
41 | echo "OK" | 41 | echo "OK" |
42 | exit 0 | 42 | exit 0 |