summaryrefslogtreecommitdiffstats
path: root/common/scripts
diff options
context:
space:
mode:
authorKhouloud Touil <ktouil@baylibre.com>2019-03-13 15:17:05 +0100
committerKhouloud Touil <ktouil@baylibre.com>2019-03-14 10:14:10 +0100
commitaf27f3b076f490e05955b558894edc42c8cd9819 (patch)
treed2d50eb72911587916762e8eeb927006a17b7366 /common/scripts
parent92bb11c8f3a6417549c38451409c243de1331746 (diff)
test_can_bitrate: fix indentation
This patch fixes indentation in the 'test_can_bitrate.sh' file. Change-Id: I1968e9e7e39429e3900b845c1f72ff393f741d16 Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
Diffstat (limited to 'common/scripts')
-rwxr-xr-xcommon/scripts/test_can_bitrate.sh44
1 files changed, 22 insertions, 22 deletions
diff --git a/common/scripts/test_can_bitrate.sh b/common/scripts/test_can_bitrate.sh
index 0a34fc0..ef5b22a 100755
--- a/common/scripts/test_can_bitrate.sh
+++ b/common/scripts/test_can_bitrate.sh
@@ -19,16 +19,16 @@ fi
#this first bitrate afford frames transmission or not
ip link set can0 down
if [ $? -eq 0 ];then
- lava-test-case stop_can0 --result pass
+ lava-test-case stop_can0 --result pass
else
- lava-test-case stop_can0 --result fail
+ lava-test-case stop_can0 --result fail
fi
sleep 2
ip link set can1 down
if [ $? -eq 0 ];then
- lava-test-case stop_can1 --result pass
+ lava-test-case stop_can1 --result pass
else
- lava-test-case stop_can1 --result fail
+ lava-test-case stop_can1 --result fail
fi
sleep 2
@@ -93,19 +93,19 @@ ip link set can0 down
ip link set can1 down
found_bitrate_for_transmisson=0
for b in `seq 10790 10800`;do
- ip link set can0 type can bitrate $b
- ip link set can1 type can bitrate $b
- ip link set can0 up
- ip link set can1 up
- sleep 3
- file_can=$(mktemp)
+ ip link set can0 type can bitrate $b
+ ip link set can1 type can bitrate $b
+ ip link set can0 up
+ ip link set can1 up
+ sleep 3
+ file_can=$(mktemp)
cangen can0 &
candump can1 > $file_can &
sleep 4
- if [ -s $file_can ];then
+ if [ -s $file_can ];then
found_bitrate_for_transmisson=1
lava-test-case Receive_can1 --result pass --measurement $b --units bit/s
- sleep 2
+ sleep 2
echo "$b is the first supportable bitrate to provide transmission"
break
fi
@@ -127,15 +127,15 @@ ip link set can0 down
ip link set can1 down
bitrate_no_transmission=0
for b in `seq 1909088 1909092`;do
- ip link set can0 type can bitrate $b
- ip link set can1 type can bitrate $b
- ip link set can0 up
- ip link set can1 up
- sleep 2
- file_can=$(mktemp)
- cangen can0 &
- candump can1 > $file_can &
- sleep 3
+ ip link set can0 type can bitrate $b
+ ip link set can1 type can bitrate $b
+ ip link set can0 up
+ ip link set can1 up
+ sleep 2
+ file_can=$(mktemp)
+ cangen can0 &
+ candump can1 > $file_can &
+ sleep 3
size=$(stat -c %s $file_can)
if [ $size -eq 0 ];then
bitrate_no_transmission=1
@@ -148,7 +148,7 @@ for b in `seq 1909088 1909092`;do
fi
ip link set can0 down
ip link set can1 down
- rm $file_can
+ rm $file_can
done
if [ $bitrate_no_transmission -eq 0 ];then