Update microdroid test to include protected_vm flag

assemble_cvd was updated to include a flag which would disable insecure
launcher options.

Bug: 182005319
Test: local boot on cuttlefish
Change-Id: I3aabd594bf742a7639d4f57a1276a2733545c03e
This commit is contained in:
Ram Muthiah 2021-03-15 17:40:40 -07:00
parent af5f756ee9
commit 543c58b347
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ Create the composite image using `assemble_cvd` and run it via `crosvm`. In the
future, this shall be done via [`virtmanager`](../virtmanager/).
```
$ adb shell 'HOME=/data/local/tmp; PATH=$PATH:/apex/com.android.virt/bin; assemble_cvd < /dev/null'
$ adb shell 'HOME=/data/local/tmp; PATH=$PATH:/apex/com.android.virt/bin; assemble_cvd -protected_vm < /dev/null'
$ adb shell 'cd /data/local/tmp; /apex/com.android.virt/bin/crosvm run --cid=5 --disable-sandbox --bios=bootloader --serial=type=stdout --disk=cuttlefish_runtime/composite.img'
```

View File

@ -84,7 +84,7 @@ public class MicrodroidTestCase extends BaseHostJUnit4Test {
// Run assemble_cvd to create composite.img
getDevice().executeShellCommand("HOME=" + TEST_ROOT + "; "
+ "PATH=$PATH:" + VIRT_APEX + "bin; "
+ VIRT_APEX + "bin/assemble_cvd < /dev/null");
+ VIRT_APEX + "bin/assemble_cvd -protected_vm < /dev/null");
// Make sure that composite.img is created
final String compositeImg = TEST_ROOT + "cuttlefish_runtime/composite.img";