Speed up AuthFsHostTest by reusing the VM
This is basically 7fc99e6c5e03bccc7d461a86c46b1a03b34a547b without
merging AuthFsHostTest into MicrodroidHostTestCases.
Also, add the test to presubmit.
Bug: 191056545
Bug: 193749869
Test: atest AuthFsHostTest
Change-Id: I866c4bbd6dbfc6d47719ad68dd91dafa8096b2c3
diff --git a/authfs/tests/AndroidTest.xml b/authfs/tests/AndroidTest.xml
index 8f940f6..6100ab9 100644
--- a/authfs/tests/AndroidTest.xml
+++ b/authfs/tests/AndroidTest.xml
@@ -18,18 +18,11 @@
<!-- Need root to start virtualizationservice -->
<target_preparer class="com.android.tradefed.targetprep.RootTargetPreparer"/>
- <!-- virtualizationservice doesn't have access to shell_data_file. Instead of giving it
- a test-only permission, run it without selinux -->
+ <!-- Still need to define SELinux policy for authfs and fd_server properly. -->
<target_preparer class="com.android.tradefed.targetprep.DisableSELinuxTargetPreparer"/>
- <!-- Basic checks that the device has all the prerequisites. -->
<target_preparer class="com.android.tradefed.targetprep.RunCommandTargetPreparer">
<option name="throw-if-cmd-fail" value="true" />
- <!-- Make sure kernel has FUSE enabled. -->
- <option name="run-command" value="ls /dev/fuse" />
- <!-- Make sure necessary executables are installed. -->
- <option name="run-command" value="ls /apex/com.android.virt/bin/fd_server" />
- <option name="run-command" value="ls /apex/com.android.virt/bin/authfs" />
<!-- Prepare test directory. -->
<option name="run-command" value="mkdir -p /data/local/tmp/authfs/mnt" />
<option name="teardown-command" value="rm -rf /data/local/tmp/authfs" />