From: Frederic Marec Date: Thu, 17 Oct 2019 15:09:50 +0000 (+0200) Subject: Fix low-can test X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Fsandbox%2FDDTLK%2Ffix-tests;p=apps%2Fagl-service-can-low-level.git Fix low-can test Change print before test Fix filter test Change-Id: Ie47732f8a5a21cb776719171615074506fbce7df Signed-off-by: Frederic Marec --- diff --git a/test/afb-test/tests/low-can_BasicAPITest.lua b/test/afb-test/tests/low-can_BasicAPITest.lua index 2076d878..8f44e4cc 100644 --- a/test/afb-test/tests/low-can_BasicAPITest.lua +++ b/test/afb-test/tests/low-can_BasicAPITest.lua @@ -26,7 +26,7 @@ print("##########################################\n") _AFT.setBeforeAll(function() local can = io.open("/sys/class/net/can0") if can == nil then - print("# You do not have 'can0' device set. Please run the following command:\n### sudo modprobe vcan; sudo ip link add can0 type vcan; sudo ip link set can0 up ") + print("# You do not have 'can0' device set. Please run the following command:\n### sudo modprobe vcan; sudo ip link add can0 type vcan; sudo ip link set can0 up; sudo ip link add can1 type vcan; sudo ip link set can1 up") return -1 end return 0 diff --git a/test/afb-test/tests/low-can_FilterTest01.lua b/test/afb-test/tests/low-can_FilterTest01.lua index 028358f6..6ebb7304 100644 --- a/test/afb-test/tests/low-can_FilterTest01.lua +++ b/test/afb-test/tests/low-can_FilterTest01.lua @@ -93,7 +93,7 @@ _AFT.describe("Filter_Test_01/Step_3", function() local ret = os.execute("bash ".._AFT.bindingRootDir.."/var/replay_launcher.sh ".._AFT.bindingRootDir.."/var/testFilter01pass.canreplay"); _AFT.assertIsTrue(ret) - _AFT.assertEvtGrpReceived({[api .."/"..evt]= 2}, 3000000) + _AFT.assertEvtGrpReceived({[api .."/"..evt]=1}, 3000000) end, nil, function()