Merge "Ignore 'cmd font clear' failure in tearDown()." into sc-dev am: dc8bad21d6

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14448847

Change-Id: I5596a3647b7687e1a679b9196eb2089955b229fd
This commit is contained in:
Kohsuke Yatoh
2021-05-06 14:44:58 +00:00
committed by Automerger Merge Worker

View File

@@ -112,7 +112,8 @@ public class UpdatableSystemFontTest {
@After
public void tearDown() throws Exception {
expectCommandToSucceed("cmd font clear");
// Ignore errors because this may fail if updatable system font is not enabled.
runShellCommand("cmd font clear", null);
if (mKeyId != null) {
expectCommandToSucceed("mini-keyctl unlink " + mKeyId + " .fs-verity");
}