From 20776aa335a7835a12a06c36b1a0d816e837a7c8 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 7 Sep 2023 23:13:43 +0200 Subject: tests/shell: return 77/skip for tests that fail to create dummy device There are some existing tests, that skip operation when they fail to create a dummy interface. Use the new exit code 77 to indicate "SKIPPED". I wonder why creating a dummy device would ever fail and why we don't just fail the test altogether in that case. But the patch does not change that. Signed-off-by: Thomas Haller Signed-off-by: Florian Westphal --- tests/shell/testcases/chains/netdev_chain_0 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/shell/testcases/chains/netdev_chain_0') diff --git a/tests/shell/testcases/chains/netdev_chain_0 b/tests/shell/testcases/chains/netdev_chain_0 index 67cd715f..41e72441 100755 --- a/tests/shell/testcases/chains/netdev_chain_0 +++ b/tests/shell/testcases/chains/netdev_chain_0 @@ -2,19 +2,19 @@ ip link add d0 type dummy || { echo "Skipping, no dummy interface available" - exit 0 + exit 77 } trap "ip link del d0" EXIT ip link add d1 type dummy || { echo "Skipping, no dummy interface available" - exit 0 + exit 77 } trap "ip link del d1" EXIT ip link add d2 type dummy || { echo "Skipping, no dummy interface available" - exit 0 + exit 77 } trap "ip link del d2" EXIT -- cgit v1.2.3