Temporarily disable NetworkPermissionDefault in cuttlefish and tiny fix
This test is broken since ab/5604620.
So disable for now, and wait for real solution.
Also a tiny change for fixing wrong result description of NDC command.
(ndc network default set netid)
Bug: 133653863
Bug: 133714377
Test: built, flashed, booted
system/netd/tests/runtests.sh
Run test case "NetworkPermissionDefault" manually in cuttlefish
to verify that the test is skipped.
Change-Id: I37c48f119a7e0293b00582234cf7d716baf08e7a
diff --git a/server/NdcDispatcher.cpp b/server/NdcDispatcher.cpp
index 05ea709..7692a9c 100644
--- a/server/NdcDispatcher.cpp
+++ b/server/NdcDispatcher.cpp
@@ -1109,7 +1109,7 @@
} else if (strcmp(argv[2], "clear")) {
return syntaxError(cli, "Unknown argument");
}
- if (Status status = mNetd->networkSetDefault(netId); status.isOk()) {
+ if (Status status = mNetd->networkSetDefault(netId); !status.isOk()) {
return operationError(cli, "setDefaultNetwork() failed",
status.serviceSpecificErrorCode());
}