commit | 78b3e6d8b605df737bbb00602f57446666500a93 | [log] [tgz] |
---|---|---|
author | Shikha Panwar <shikhapanwar@google.com> | Tue Feb 07 21:14:30 2023 +0000 |
committer | Shikha Panwar <shikhapanwar@google.com> | Thu Feb 09 14:12:19 2023 +0000 |
tree | 04240e9e3879596b08ed563bd6c84ed744c6fa8a | |
parent | 7adc92025d80bf74cf68e1f4d6f9b921f421d307 [diff] |
MicrodroidHostTest: mkdir test dir @Before test run Otherwise #testPathToBinaryIsRejected would fail to create files in the dir. Bug: 268184703 Test: reboot CF -> atest #testPathToBinaryIsRejected Change-Id: Ifeb4a03eccefa7d9a84009b5db65508cfda21452
diff --git a/tests/hostside/helper/java/com/android/microdroid/test/host/MicrodroidHostTestCaseBase.java b/tests/hostside/helper/java/com/android/microdroid/test/host/MicrodroidHostTestCaseBase.java index 20a6045..a7f7906 100644 --- a/tests/hostside/helper/java/com/android/microdroid/test/host/MicrodroidHostTestCaseBase.java +++ b/tests/hostside/helper/java/com/android/microdroid/test/host/MicrodroidHostTestCaseBase.java
@@ -67,6 +67,8 @@ // remove any leftover files under test root android.tryRun("rm", "-rf", TEST_ROOT + "*"); + + android.tryRun("mkdir " + TEST_ROOT); } public static void cleanUpVirtualizationTestSetup(ITestDevice androidDevice)