diff --git a/compos/verify/verify.rs b/compos/verify/verify.rs index 4dc9954a..7b77c18d 100644 --- a/compos/verify/verify.rs +++ b/compos/verify/verify.rs @@ -22,7 +22,8 @@ use anyhow::{bail, Context, Result}; use compos_aidl_interface::binder::ProcessState; use compos_common::compos_client::{VmInstance, VmParameters}; use compos_common::odrefresh::{ - CURRENT_ARTIFACTS_SUBDIR, ODREFRESH_OUTPUT_ROOT_DIR, TEST_ARTIFACTS_SUBDIR, + CURRENT_ARTIFACTS_SUBDIR, ODREFRESH_OUTPUT_ROOT_DIR, PENDING_ARTIFACTS_SUBDIR, + TEST_ARTIFACTS_SUBDIR, }; use compos_common::{ COMPOS_DATA_ROOT, CURRENT_INSTANCE_DIR, IDSIG_FILE, IDSIG_MANIFEST_APK_FILE, @@ -62,7 +63,7 @@ fn try_main() -> Result<()> { .long("instance") .takes_value(true) .required(true) - .possible_values(&["current", "test"]), + .possible_values(&["current", "pending", "test"]), ) .arg(clap::Arg::with_name("debug").long("debug")) .get_matches(); @@ -70,6 +71,7 @@ fn try_main() -> Result<()> { let debug_mode = matches.is_present("debug"); let (instance_dir, artifacts_dir) = match matches.value_of("instance").unwrap() { "current" => (CURRENT_INSTANCE_DIR, CURRENT_ARTIFACTS_SUBDIR), + "pending" => (CURRENT_INSTANCE_DIR, PENDING_ARTIFACTS_SUBDIR), "test" => (TEST_INSTANCE_DIR, TEST_ARTIFACTS_SUBDIR), _ => unreachable!("Unexpected instance name"), };