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 <thaller@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
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
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 d0 type dummy || {
echo "Skipping, no dummy interface available"
- exit 0
+ exit 77
}
trap "ip link del d0" EXIT