diff options
author | Khouloud Touil <ktouil@baylibre.com> | 2019-10-03 11:17:04 +0200 |
---|---|---|
committer | Khouloud Touil <ktouil@baylibre.com> | 2019-10-03 11:19:02 +0200 |
commit | 4b263fd3625dbb9a2f30c77bbd8e49bde0bca967 (patch) | |
tree | 6ae43051b8332cd4bcb58ee2a859f482d1c152f2 /common/scripts/test_can_loopback_mode.sh | |
parent | 9c3c11e82280d72d34a6c0f32d255d6a0f1b23c8 (diff) |
Avoid some test cases failures
To make sure that the can interface could be configured, we have to make
it dowm each time before the start of the config step.
Change-Id: I7bebea65072ffd822ee30241c68a0a89123b1576
Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
Diffstat (limited to 'common/scripts/test_can_loopback_mode.sh')
-rwxr-xr-x | common/scripts/test_can_loopback_mode.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/scripts/test_can_loopback_mode.sh b/common/scripts/test_can_loopback_mode.sh index 7f86ef9..4425c5d 100755 --- a/common/scripts/test_can_loopback_mode.sh +++ b/common/scripts/test_can_loopback_mode.sh @@ -9,6 +9,11 @@ if [ ! -e /sys/class/net/can0 ];then exit 0 fi sleep 2 + +#Make sure always that the can interface is down before +#starting the config step. +ip link set can0 down + #config the can interfaces ip link set can0 type can bitrate 50000 loopback on sleep 2 |