Fix the for loop 71/20671/1
authorKhouloud Touil <ktouil@baylibre.com>
Wed, 13 Mar 2019 14:19:00 +0000 (15:19 +0100)
committerKhouloud Touil <ktouil@baylibre.com>
Thu, 14 Mar 2019 09:14:10 +0000 (10:14 +0100)
To avoid looping several times through the same test case the 'break'
should be moved to the right position.

Change-Id: I8a4d5e73b1f2ef39f8593209b928323a1770dedf
Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
common/scripts/test_can_bitrate.sh

index ef5b22a..08592fe 100755 (executable)
@@ -73,9 +73,9 @@ for b in `seq 778 790`;do
                        lava-test-case Receive_can1 --result fail --measurement $b --units bit/s
                        sleep 2
                        echo "This bitrate $b belongs to the domain but doesn't provide frames transmission"
-                       break
                fi
                rm $file_can
+               break
        fi
 done