commit | 6b27a4a0c1264fc8285f631a35b09fbdc99af090 | [log] [tgz] |
---|---|---|
author | Nikita Ioffe <ioffe@google.com> | Sat Jul 01 17:53:54 2023 +0100 |
committer | Nikita Ioffe <ioffe@google.com> | Sat Jul 01 17:59:09 2023 +0100 |
tree | 2a7e4040dbcafb18c7565b146b412a992911e1bf | |
parent | 46d77fc12904570ecda153843eb38d81545e57d7 [diff] |
Revoke USE_CUSTOM_VIRTUAL_MACHINE permission in @Before setup() We have some tests checking that some features are guarded by USE_CUSTOM_VIRTUAL_MACHINE, and if caller doesn't have the permission they should get a SecurityException back (e.g. MicrodroidTests#createVmWithConfigRequiresPermission). Such test will fail if it is ran by itself, e.g.: atest com.android.microdroid.test.MicrodroidTests#createVmWithConfigurRequiresPermission This changes fixes the problem by revoking the permission during the test setup. Test: atest com.android.microdroid.test.MicrodroidTests#createVmWithConfigRequiresPermission Change-Id: I54e907d5907d225b2f412451fd456241ff568e00
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.