SPEC-2996: rework the CAN modules tests 74/23074/1
authorCorentin LABBE <clabbe@baylibre.com>
Wed, 27 Nov 2019 09:58:26 +0000 (10:58 +0100)
committerCorentin LABBE <clabbe@baylibre.com>
Wed, 27 Nov 2019 10:40:19 +0000 (11:40 +0100)
commitbf2a5d6e8537c5e8d6203232cc0037d57d503e4e
tree2303934ff258f99bd508254df4b9d3b37ab99cdf
parent925a46030494ef05e4a737130ea66a74f85b30ed
SPEC-2996: rework the CAN modules tests

The CAN modules tests have lots of redundant code, let's add some
function for probing/removing modules.

Furthermore, some tests cannot work with busybox ip, I adds some tests
for it.

When reworking the tests, I have removed the "lsmod |grep can" tests
which was of no value.
I have also removed all sleep which was undocumented(probably for some
log flushing), if something need them I will re-add it with comment.

Bug-AGL: SPEC-2996
Change-Id: I2e8a109d799c58726d848814fd4c21a9fbd2eef5
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
common/scripts/test_can_modules.sh