aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-07-26 14:59:07 -0700
committerRob Landley <rob@landley.net>2019-07-27 16:25:39 -0500
commite439a16c086ad3d6eb215daebf6eec76f90638e0 (patch)
tree0e4ea368706e9fbb5f3caabc1b9947b2a97de0e1
parentb942b7f88a59aec20303212285cafad7c52ed560 (diff)
downloadtoybox-e439a16c086ad3d6eb215daebf6eec76f90638e0.tar.gz
ifconfig.test: actually skip tests if dummy0 up fails.
Rather than just claim we're doing so. Android cloud emulators don't have dummy0 like regular devices do.
-rwxr-xr-xtests/ifconfig.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ifconfig.test b/tests/ifconfig.test
index d71f3576..c189ccaf 100755
--- a/tests/ifconfig.test
+++ b/tests/ifconfig.test
@@ -35,6 +35,8 @@ modprobe dummy 2>/dev/null
if ! ifconfig dummy0 up 2>/dev/null
then
echo "$SHOWSKIP: ifconfig dummy0 up failed"
+ return 2>/dev/null
+ exit
fi
# Test Description: Disable the dummy0 interface