diff options
author | Kelvin Zhang <zhangkelvin@google.com> | 2020-11-05 13:52:00 -0500 |
---|---|---|
committer | Kelvin Zhang <zhangkelvin@google.com> | 2020-11-23 14:49:17 -0500 |
commit | 91d95fa9454d56f486e49742039ddb92e10cf054 (patch) | |
tree | 12fd299e1333feb82157b245d8fd38e08f0967e6 /payload_consumer/postinstall_runner_action_unittest.cc | |
parent | 098e79a0c348d2636fd102db081b4e03cb30ef9d (diff) |
Do not map dynamic partitions on VABC devices
With VABC, we no longer need to map all partitions before
reading/writing, so don't try to map them.
1. modify GetPartitionDevice to return empty path for target partitions
on VABC
2. Add a separate GetMountableTargetDevice for obtaining a mountable
device path, specifically for postinstall
Test: treehugger
Change-Id: Ib1f608914fc49c677ce7389140ca79b028171191
Diffstat (limited to 'payload_consumer/postinstall_runner_action_unittest.cc')
-rw-r--r-- | payload_consumer/postinstall_runner_action_unittest.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/payload_consumer/postinstall_runner_action_unittest.cc b/payload_consumer/postinstall_runner_action_unittest.cc index cce86e9b..9b330d98 100644 --- a/payload_consumer/postinstall_runner_action_unittest.cc +++ b/payload_consumer/postinstall_runner_action_unittest.cc @@ -195,6 +195,7 @@ void PostinstallRunnerActionTest::RunPostinstallAction( InstallPlan::Partition part; part.name = "part"; part.target_path = device_path; + part.postinstall_mount_device = device_path; part.run_postinstall = true; part.postinstall_path = postinstall_program; InstallPlan install_plan; @@ -356,6 +357,7 @@ TEST_F(PostinstallRunnerActionTest, RunAsRootSkipOptionalPostinstallTest) { InstallPlan::Partition part; part.name = "part"; part.target_path = "/dev/null"; + part.postinstall_mount_device = "/dev/null"; part.run_postinstall = true; part.postinstall_path = kPostinstallDefaultScript; part.postinstall_optional = true; |