Merge "SPEC-2996: handle rcar_can"
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 28 Nov 2019 15:06:15 +0000 (15:06 +0000)
committerGerrit Code Review <gerrit@automotivelinux.org>
Thu, 28 Nov 2019 15:06:15 +0000 (15:06 +0000)
1  2 
common/scripts/test_can_modules.sh

@@@ -48,9 -50,15 +50,15 @@@ remove_module c_can_platfor
  
  remove_module c_can
  
- remove_module can_dev unload_can_dev_module
+ lsmod | grep -q rcar_can
+ if [ $? -eq 0 ];then
+       RCAR_CAN=1
+       remove_module rcar_can
+ fi
+ remove_module can_dev
  
 -ip -V | grep -q -i BusyBox
 +ip -V 2>&1 | grep -q -i BusyBox
  if [ $? -eq 0 ];then
        lava-test-case canconfig_can0 --result skip
  else