Merge "Print the result of command when test is failed"

This commit is contained in:
Lucas Lin
2021-07-01 07:49:03 +00:00
committed by Gerrit Code Review

View File

@@ -1079,7 +1079,7 @@ public class ConnectivityManagerTest {
final Matcher m = Pattern.compile("^" + ssid + ";(true|false|none)$",
Pattern.MULTILINE | Pattern.UNIX_LINES).matcher(policyString);
if (!m.find()) {
fail("Unexpected format from cmd netpolicy");
fail("Unexpected format from cmd netpolicy, policyString = " + policyString);
}
return m.group(1);
}