diff --git a/bin/loop_sequences b/bin/loop_sequences index 369eddfe9..9bb7598cc 100755 --- a/bin/loop_sequences +++ b/bin/loop_sequences @@ -39,7 +39,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 diff --git a/bin/sequencer b/bin/sequencer index 6fdba3381..c02c42402 100755 --- a/bin/sequencer +++ b/bin/sequencer @@ -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 diff --git a/bin/test_sequencer b/bin/test_sequencer index fc3c4caf0..51b91f5a6 100755 --- a/bin/test_sequencer +++ b/bin/test_sequencer @@ -47,7 +47,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 diff --git a/bin/test_validator b/bin/test_validator index 6c6e26d3e..583b22da1 100755 --- a/bin/test_validator +++ b/bin/test_validator @@ -53,7 +53,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