Skip to content

Commit

Permalink
Slight shell tweaks to be more explicit about comparisons. Related to
Browse files Browse the repository at this point in the history
multi platform support.
  • Loading branch information
johnrandolph committed Apr 19, 2022
1 parent 4f07461 commit fe9aae6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/loop_sequences
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if [[ ! -d $site_model ]]; then
fi

awc=$(echo $project_id $site_model $device_id $serial_no | wc -w)
if [[ $awc != 4 ]]; then
if [[ $awc -ne 4 ]]; then
echo Missing configuration paramaters.
exit -1
fi
Expand Down
2 changes: 1 addition & 1 deletion bin/sequencer
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ echo
# Sort by test name (6th field)
fgrep 'RESULT ' $TEST_LOG | sort -k 6 | tee /tmp/sequencer.out

if [[ `wc -l < /tmp/sequencer.out` == 0 ]]; then
if [[ `wc -l < /tmp/sequencer.out` -eq 0 ]]; then
echo No test results found.
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion bin/test_sequencer
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ for i in `seq 1 $WAITING`; do
sleep 2
done

if [[ $i == $WAITING ]]; then
if [[ $i -eq $WAITING ]]; then
echo pubber startup failed:
cat $PUBBER_OUT
false
Expand Down
2 changes: 1 addition & 1 deletion bin/test_validator
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ for i in `seq 1 $WAITING`; do
sleep 2
done

if [[ $i == $WAITING ]]; then
if [[ $i -eq $WAITING ]]; then
echo pubber startup failed:
cat $PUBBER_OUT
false
Expand Down

0 comments on commit fe9aae6

Please sign in to comment.