summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-09-27 23:21:41 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-09-27 23:21:41 +0000
commita64b8e155edfa1f1937cdc568bbf0a0dc9c7256f (patch)
tree1b4377c06164b04ab7ff86996a7ad5c2fcef1966
parentbe3fd02c760a1fb2fbe9577a4dcac3cf4eb9cb6a (diff)
parent5d21d928cc8db41dc099b3cda9674aa25ce4883c (diff)
downloadinterfaces-android14-d2-s3-release.tar.gz
Change-Id: I0fd9833a52a1e876ee9f25a3ea4362a4b7280999
-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
}