Don't run non-protected tests if not supported

We have various tests that use a non-protected VM. However, support
for those is not mandatory, and currently they fail on systems which
only support protected VMs.

This CL just prevents those tests from running if non-protected VMs
are not supported. This prevents spurous failures.

A better approach would be to run the tests on protected VMs instead;
that's in a follow-up CL.

To test this I modified ITestDevice to report no support for
non-protected VMs, and also modified VirtualizationManager to fail a
request for one. That allowed me to reproduce the failures and verify
that this gets rid of them.

Bug: 290727698
Test: atest MicrodroidHostTestCases
(cherry picked from https://android-review.googlesource.com/q/commit:07034763ad421f9bbea9c6020169541570799f60)
Merged-In: If748cf16f1ebcd8fec66595d3f172eca37d1648e
Change-Id: If748cf16f1ebcd8fec66595d3f172eca37d1648e
1 file changed
tree: 7f6b5050c51e07a814a3bf71b7e3e9e391e69b7f
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. compos/
  5. demo/
  6. docs/
  7. encryptedstore/
  8. javalib/
  9. launcher/
  10. libs/
  11. microdroid/
  12. microdroid_manager/
  13. pvmfw/
  14. rialto/
  15. tests/
  16. virtualizationmanager/
  17. virtualizationservice/
  18. vm/
  19. vm_payload/
  20. vmbase/
  21. vmclient/
  22. zipfuse/
  23. .clang-format
  24. .gitignore
  25. Android.bp
  26. OWNERS
  27. PREUPLOAD.cfg
  28. README.md
  29. TEST_MAPPING
README.md

Virtualization

This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.