X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Fscripts%2Ftest_can_send_receive.sh;h=150ce370e9638e21ae938d50fdae871712153c79;hb=f911ecf332aca722c13590a5c0bf085a37d4841e;hp=06bde6f8985beeccd3d2227e22e5afef017b4b0a;hpb=f48f8fed096c534b65a428c5c0618261ed1a04af;p=src%2Fqa-testdefinitions.git diff --git a/common/scripts/test_can_send_receive.sh b/common/scripts/test_can_send_receive.sh index 06bde6f..150ce37 100755 --- a/common/scripts/test_can_send_receive.sh +++ b/common/scripts/test_can_send_receive.sh @@ -13,6 +13,11 @@ if [ ! -e /sys/class/net/can1 ];then exit 0 fi +#Make sure always that the can interface is down before +#starting the config step. +ip link set can0 down +ip link set can1 down + #config the can interfaces ip link set can0 type can bitrate 50000 if [ $? -eq 0 ];then