Merge "Print the result of command when test is failed" into sc-dev
This commit is contained in:
@@ -1086,7 +1086,7 @@ public class ConnectivityManagerTest {
|
|||||||
final Matcher m = Pattern.compile("^" + ssid + ";(true|false|none)$",
|
final Matcher m = Pattern.compile("^" + ssid + ";(true|false|none)$",
|
||||||
Pattern.MULTILINE | Pattern.UNIX_LINES).matcher(policyString);
|
Pattern.MULTILINE | Pattern.UNIX_LINES).matcher(policyString);
|
||||||
if (!m.find()) {
|
if (!m.find()) {
|
||||||
fail("Unexpected format from cmd netpolicy");
|
fail("Unexpected format from cmd netpolicy, policyString = " + policyString);
|
||||||
}
|
}
|
||||||
return m.group(1);
|
return m.group(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user