summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-06 20:29:52 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-06 20:29:52 +0000
commit33b9aeddaa5d663fe7db92c5fde5094bee8cb957 (patch)
tree1b4377c06164b04ab7ff86996a7ad5c2fcef1966
parent12cb70ebee5def5e3bb7cddebc957907c8ea7d5b (diff)
parent0af85b1021489e254d3a3354c1edbb8715c68ba8 (diff)
downloadinterfaces-android14-mainline-permission-release.tar.gz
Snap for 11028996 from 0af85b1021489e254d3a3354c1edbb8715c68ba8 to mainline-permission-releaseaml_per_341711000aml_per_341614000aml_per_341510010aml_per_341410020aml_per_341311000android14-mainline-permission-release
Change-Id: I58c869e51a6780e2abe21eaf63655dcd89feccb5
-rwxr-xr-xsuspend/1.0/default/SuspendSepolicyTests.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/suspend/1.0/default/SuspendSepolicyTests.sh b/suspend/1.0/default/SuspendSepolicyTests.sh
index b40f798..0dd2a3e 100755
--- a/suspend/1.0/default/SuspendSepolicyTests.sh
+++ b/suspend/1.0/default/SuspendSepolicyTests.sh
@@ -49,13 +49,15 @@ check_wakeup_dup() { # wakeup_path
get_unlabeled_wakeup_paths() {
for path in ${wakeup_paths[@]}; do
+ wakeup_path="$path"
+ has_wakeup_attr "$wakeup_path" && continue
+
# If there exists a common wakeup parent directory, label that instead
# of each wakeupN directory
- wakeup_path="$path"
dir_path="$(dirname $path)"
[ "$(basename $dir_path)" == "wakeup" ] && wakeup_path="$dir_path"
- has_wakeup_attr "$wakeup_path" || check_wakeup_dup $wakeup_path \
- || unlabeled_paths+=( $wakeup_path )
+
+ check_wakeup_dup $wakeup_path || unlabeled_paths+=( $wakeup_path )
done
}