diff options
author | Elliott Hughes <enh@google.com> | 2019-07-26 14:59:07 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-07-27 16:25:39 -0500 |
commit | e439a16c086ad3d6eb215daebf6eec76f90638e0 (patch) | |
tree | 0e4ea368706e9fbb5f3caabc1b9947b2a97de0e1 | |
parent | b942b7f88a59aec20303212285cafad7c52ed560 (diff) | |
download | toybox-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-x | tests/ifconfig.test | 2 |
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 |