From: Khouloud Touil Date: Wed, 13 Mar 2019 14:19:00 +0000 (+0100) Subject: Fix the for loop X-Git-Tag: 7.99.1~3 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=cc5951421680b6a620a229b5b08d188043dbde1a;p=src%2Fqa-testdefinitions.git Fix the for loop 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 --- diff --git a/common/scripts/test_can_bitrate.sh b/common/scripts/test_can_bitrate.sh index ef5b22a..08592fe 100755 --- a/common/scripts/test_can_bitrate.sh +++ b/common/scripts/test_can_bitrate.sh @@ -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