aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/afb-test/fixtures/testValueJ1939_1.canreplay2
-rw-r--r--test/afb-test/fixtures/testj1939.canreplay2
-rw-r--r--test/afb-test/tests/low-can_J1939Test.lua4
-rw-r--r--test/afb-test/tests/low-can_ValueJ1939Test.lua4
-rw-r--r--test/afb-test/tests/low-can_ValueTestCan.lua4
5 files changed, 8 insertions, 8 deletions
diff --git a/test/afb-test/fixtures/testValueJ1939_1.canreplay b/test/afb-test/fixtures/testValueJ1939_1.canreplay
index 4685c39b..d08971e3 100644
--- a/test/afb-test/fixtures/testValueJ1939_1.canreplay
+++ b/test/afb-test/fixtures/testValueJ1939_1.canreplay
@@ -1 +1 @@
-(1481581765.346271) can2 09FD0202#EC5D0087C2FAFFFF
+(1481581765.346271) can0 09FD0202#EC5D0087C2FAFFFF
diff --git a/test/afb-test/fixtures/testj1939.canreplay b/test/afb-test/fixtures/testj1939.canreplay
index d73ee92c..90b89c9d 100644
--- a/test/afb-test/fixtures/testj1939.canreplay
+++ b/test/afb-test/fixtures/testj1939.canreplay
@@ -1 +1 @@
-(08255.460200) can2 0CF00203#CD402800043828FF
+(08255.460200) can0 0CF00203#CD402800043828FF
diff --git a/test/afb-test/tests/low-can_J1939Test.lua b/test/afb-test/tests/low-can_J1939Test.lua
index 3e855366..121dbc44 100644
--- a/test/afb-test/tests/low-can_J1939Test.lua
+++ b/test/afb-test/tests/low-can_J1939Test.lua
@@ -21,9 +21,9 @@
_AFT.setBeforeAll(function()
- local can = io.open("/sys/class/net/can2")
+ local can = io.open("/sys/class/net/can0")
if can == nil then
- print("# You do not have 'can2' device set. Please run the following command:\n### sudo modprobe vcan; sudo ip link add can2 type vcan; sudo ip link set can2 up ")
+ print("# You do not have 'can0' device set. Please run the following command:\n### sudo modprobe vcan; sudo ip link add can2 type vcan; sudo ip link set can2 up ")
return -1
end
return 0
diff --git a/test/afb-test/tests/low-can_ValueJ1939Test.lua b/test/afb-test/tests/low-can_ValueJ1939Test.lua
index 7fd6da67..5a4add3e 100644
--- a/test/afb-test/tests/low-can_ValueJ1939Test.lua
+++ b/test/afb-test/tests/low-can_ValueJ1939Test.lua
@@ -22,9 +22,9 @@
_AFT.setBeforeAll(function()
- local can = io.open("/sys/class/net/can2")
+ local can = io.open("/sys/class/net/can0")
if can == nil then
- print("# You do not have 'can2' device set. Please run the following command:\n### sudo modprobe vcan; sudo ip link add can2 type vcan; sudo ip link set can2 up ")
+ print("# You do not have 'can0' device set. Please run the following command:\n### sudo modprobe vcan; sudo ip link add can2 type vcan; sudo ip link set can2 up ")
return -1
end
return 0
diff --git a/test/afb-test/tests/low-can_ValueTestCan.lua b/test/afb-test/tests/low-can_ValueTestCan.lua
index 093ccf95..b717dc02 100644
--- a/test/afb-test/tests/low-can_ValueTestCan.lua
+++ b/test/afb-test/tests/low-can_ValueTestCan.lua
@@ -22,9 +22,9 @@
_AFT.setBeforeAll(function()
- local can = io.open("/sys/class/net/can2")
+ local can = io.open("/sys/class/net/can0")
if can == nil then
- print("# You do not have 'can2' device set. Please run the following command:\n### sudo modprobe vcan; sudo ip link add can2 type vcan; sudo ip link set can2 up ")
+ print("# You do not have 'can0' device set. Please run the following command:\n### sudo modprobe vcan; sudo ip link add can2 type vcan; sudo ip link set can2 up ")
return -1
end
return 0