X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Fscripts%2Ftest_can_modules.sh;fp=common%2Fscripts%2Ftest_can_modules.sh;h=12e82eeb559c3a4c7e5141525262b934844e5604;hb=4b263fd3625dbb9a2f30c77bbd8e49bde0bca967;hp=d6caf54d1f03e586916a9b421a3c49ca561fa5ad;hpb=9c3c11e82280d72d34a6c0f32d255d6a0f1b23c8;p=src%2Fqa-testdefinitions.git diff --git a/common/scripts/test_can_modules.sh b/common/scripts/test_can_modules.sh index d6caf54..12e82ee 100755 --- a/common/scripts/test_can_modules.sh +++ b/common/scripts/test_can_modules.sh @@ -121,6 +121,11 @@ fi sleep 5 +#Make sure always that the can interface is down before +#starting the config step. +ip link set can0 down +ip link set can1 down + ip link set can0 type can bitrate 50000 if [ $? -eq 0 ];then lava-test-case canconfig_can0 --result pass