Rather than just claim we're doing so. Android cloud emulators don't have dummy0 like regular devices do. --- tests/ifconfig.test | 2 ++ 1 file changed, 2 insertions(+)
From de143f87944b9ac53afeb7ead5ed485cbfee5b0f Mon Sep 17 00:00:00 2001 From: Elliott Hughes <[email protected]> Date: Fri, 26 Jul 2019 14:59:07 -0700 Subject: [PATCH] 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. --- tests/ifconfig.test | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.22.0.709.g102302147b-goog
_______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
