Merge "aconfig: add support for dump --filter='{fully_qualified_name}:...'" into main am: 8d1e52319e
Original change: https://android-review.googlesource.com/c/platform/build/+/2882086 Change-Id: I5ae881f64e5fd142748b54c71f565e4a0a6f49f4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -197,6 +197,10 @@ fn create_filter_predicate_single(filter: &str) -> Result<Box<DumpPredicate>> {
|
||||
Ok(Box::new(move |flag: &ProtoParsedFlag| flag.container() == expected))
|
||||
}
|
||||
// metadata: not supported yet
|
||||
"fully_qualified_name" => {
|
||||
let expected = arg.to_owned();
|
||||
Ok(Box::new(move |flag: &ProtoParsedFlag| flag.fully_qualified_name() == expected))
|
||||
}
|
||||
_ => Err(anyhow!(error_msg)),
|
||||
}
|
||||
}
|
||||
@@ -409,6 +413,12 @@ mod tests {
|
||||
);
|
||||
// metadata: not supported yet
|
||||
|
||||
// synthesized fields
|
||||
assert_create_filter_predicate!(
|
||||
"fully_qualified_name:com.android.aconfig.test.disabled_rw",
|
||||
&["com.android.aconfig.test.disabled_rw"]
|
||||
);
|
||||
|
||||
// multiple sub filters
|
||||
assert_create_filter_predicate!(
|
||||
"permission:READ_ONLY+state:ENABLED",
|
||||
|
Reference in New Issue
Block a user