Filter tests improvements 53/18753/3
authorRomain Forlot <romain.forlot@iot.bzh>
Thu, 29 Nov 2018 18:00:02 +0000 (19:00 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Fri, 14 Dec 2018 08:59:47 +0000 (08:59 +0000)
commit9cef9811c615df506807f405eb2de3c1a9268fba
tree159bb138034f2dfefe4e356b5590815e054e7727
parentff089ab8b009c81bcf92abf181faa00348eb62cd
Filter tests improvements

- Unsubscribe using the tear down feature instead of invoking it inside a test
which could not be called if a previous assertion failed.
- Always use the same event so make the 'api' and 'evt' variables at file scope.
- Asserting the bash script's return launcher execution

Change-Id: I6be151d07f890aef053a5ada06216aac7941c165
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
test/afb-test/fixtures/testFilter01filteredOut.canreplay
test/afb-test/fixtures/testFilter01pass.canreplay
test/afb-test/tests/low-can_BasicAPITest.lua
test/afb-test/tests/low-can_FilterTest01.lua