Remove shell invoking of payload

The payload will be automatically run by microdroid_manager.

Bug: 193118220
Test: atest MicrodroidHostTestCases
Change-Id: I851bc7890ebfc27dadea1fa9ce09413e18aed07c
This commit is contained in:
Inseob Kim 2021-08-04 03:36:47 +00:00
parent a920f9e4d2
commit 4e207a1753
2 changed files with 6 additions and 7 deletions

View File

@ -35,6 +35,10 @@ microdroid_symlinks = [
target: "/system/etc",
name: "etc",
},
{
target: "/system/bin",
name: "bin",
},
]
android_system_image {

View File

@ -69,13 +69,8 @@ public class MicrodroidTestCase extends VirtualizationTestCaseBase {
assertThat(runOnMicrodroid("getprop", "debug.microdroid.app.run"), is("true"));
assertThat(runOnMicrodroid("getprop", "debug.microdroid.app.sublib.run"), is("true"));
// Manually execute the library and check the output
final String microdroidLauncher = "system/bin/microdroid_launcher";
assertThat(
runOnMicrodroid(microdroidLauncher, testLib, "arg1", "arg2"),
is("Hello Microdroid " + testLib + " arg1 arg2"));
// Check that keystore was found by the payload
// Check that keystore was found by the payload. Wait until the property is set.
tryRunOnMicrodroid("watch -e \"getprop debug.microdroid.test.keystore | grep '^$'\"");
assertThat(runOnMicrodroid("getprop", "debug.microdroid.test.keystore"), is("PASS"));
shutdownMicrodroid(getDevice(), cid);