commit | fdc0c283c3b41adb7bd4cdb89e8ddaca39d40ef3 | [log] [tgz] |
---|---|---|
author | Inseob Kim <inseob@google.com> | Wed Mar 16 16:11:52 2022 +0900 |
committer | Inseob Kim <inseob@google.com> | Wed Mar 16 16:11:52 2022 +0900 |
tree | 014dffc144c0e4fa6cbaae5dd06844523ba8f05a | |
parent | 5cd312a4e1c2364efc1e97aa5a96df6b00c874b5 [diff] |
Uninstall the test app in shutdown After MicrodroidHostTestCases, MicrodroidTestApp.apk isn't uninstalled and leaves some files under its data directory. It makes subsequent MicrodroidTests flaky. Bug: 224747083 Test: atest MicrodroidHostTestCases MicrodroidTests Change-Id: Ie8f3a22c0986c9bbffdc743def5e592850e3ec8e
diff --git a/tests/hostside/java/android/virt/test/MicrodroidTestCase.java b/tests/hostside/java/android/virt/test/MicrodroidTestCase.java index f305372..5b71eba 100644 --- a/tests/hostside/java/android/virt/test/MicrodroidTestCase.java +++ b/tests/hostside/java/android/virt/test/MicrodroidTestCase.java
@@ -445,5 +445,7 @@ archiveLogThenDelete(mTestLogs, getDevice(), LOG_PATH, "vm.log-" + mTestName.getMethodName()); + + getDevice().uninstallPackage(PACKAGE_NAME); } }