diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-06-20 13:45:36 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-06-20 13:45:36 +0000 |
commit | 1e9da044c773e49a483366936243c3f52bb58a4f (patch) | |
tree | b6f264fe79cec7d62680b71d2ea63efdcc91901a | |
parent | 9ab992e422722b786ca6124053a6321f37c5579b (diff) | |
parent | 65239c8c8091e71878ce9c0b58a3444b895c41b0 (diff) | |
download | bazel-android13-frc-networking-release.tar.gz |
Snap for 8745897 from 65239c8c8091e71878ce9c0b58a3444b895c41b0 to tm-frc-networking-releaset_frc_net_330443000android13-frc-networking-release
Change-Id: I680be41d3b24b7f02faf94513109b0d46bce0748
-rw-r--r-- | json_module_graph/findModulesWithTestSuitesValue.jq | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/json_module_graph/findModulesWithTestSuitesValue.jq b/json_module_graph/findModulesWithTestSuitesValue.jq new file mode 100644 index 00000000..02af5975 --- /dev/null +++ b/json_module_graph/findModulesWithTestSuitesValue.jq @@ -0,0 +1,12 @@ +# CMD: Returns the modules that have test_suites property with $arg as one of its value. +# Use $arg2 as the top level field key to be collected, e.g. Name, Blueprint. + +def hasTestSuitesWithValue($a): + .[] | select(.Name == "Test_suites") | .Values | .[] | . == $a +; + +[.[] | +select(.Module.Android.SetProperties | + if . == null then [] else . end | + hasTestSuitesWithValue($arg)) | +.[$arg2] ] | unique | sort | .[] |