Extend preparation of virtual drivers
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 27 Aug 2009 16:39:17 +0000 (18:39 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 27 Aug 2009 16:39:17 +0000 (18:39 +0200)
Make preparation of virtual drivers so that normal tests can be executed
against virtual drivers.

tests/_lib.sh

index 6327026..a8f789f 100644 (file)
@@ -44,6 +44,7 @@ prepare_lincan_virtual() {
     rmmod_can
     modprobe -C /dev/null lincan hw=virtual io=0 baudrate=0
     CAN0=/dev/can0
+    CAN1=/dev/can0
     DRIVER=lincan-virtual
     sleep 0.1
 }
@@ -70,6 +71,7 @@ prepare_socketcan_virtual() {
     ip link add dev vcan0 type vcan
     ip link set up dev vcan0
     CAN0=socketcan:vcan0
+    CAN1=socketcan:vcan0
     DRIVER=socketcan-virtual
 }