SPEC-2996: Fix ip check 82/23082/1
authorCorentin LABBE <clabbe@baylibre.com>
Thu, 28 Nov 2019 09:05:10 +0000 (10:05 +0100)
committerCorentin LABBE <clabbe@baylibre.com>
Thu, 28 Nov 2019 09:07:44 +0000 (10:07 +0100)
commitf820cb32ee5d7edb1f3c0ad8198805ba79e63b7b
treeb38d89ebadb9af442ecfa097bb789fd613c7938d
parentbf2a5d6e8537c5e8d6203232cc0037d57d503e4e
SPEC-2996: Fix ip check

BusyBox ip print its version stderr, so we need to redirect it to stdin.
Furthermore, using set -x reset the error code, we need to store it before.

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