summaryrefslogtreecommitdiffstats
path: root/common/scripts/test_can_bitrate.sh
diff options
context:
space:
mode:
authorKhouloud Touil <ktouil@baylibre.com>2019-03-13 15:19:00 +0100
committerKhouloud Touil <ktouil@baylibre.com>2019-03-14 10:14:10 +0100
commitcc5951421680b6a620a229b5b08d188043dbde1a (patch)
treed8271a25a895f0d97ca307e94c63651460dff88f /common/scripts/test_can_bitrate.sh
parentaf27f3b076f490e05955b558894edc42c8cd9819 (diff)
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 <ktouil@baylibre.com>
Diffstat (limited to 'common/scripts/test_can_bitrate.sh')
-rwxr-xr-xcommon/scripts/test_can_bitrate.sh2
1 files changed, 1 insertions, 1 deletions
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