diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-09-27 23:21:41 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-09-27 23:21:41 +0000 |
commit | a64b8e155edfa1f1937cdc568bbf0a0dc9c7256f (patch) | |
tree | 1b4377c06164b04ab7ff86996a7ad5c2fcef1966 | |
parent | be3fd02c760a1fb2fbe9577a4dcac3cf4eb9cb6a (diff) | |
parent | 5d21d928cc8db41dc099b3cda9674aa25ce4883c (diff) | |
download | interfaces-android14-d2-s3-release.tar.gz |
Snap for 10871594 from 5d21d928cc8db41dc099b3cda9674aa25ce4883c to udc-d2-releaseandroid-14.0.0_r45android-14.0.0_r44android-14.0.0_r43android-14.0.0_r42android-14.0.0_r41android-14.0.0_r40android-14.0.0_r39android-14.0.0_r38android14-d2-s5-releaseandroid14-d2-s4-releaseandroid14-d2-s3-releaseandroid14-d2-s2-releaseandroid14-d2-s1-releaseandroid14-d2-release
Change-Id: I0fd9833a52a1e876ee9f25a3ea4362a4b7280999
-rwxr-xr-x | suspend/1.0/default/SuspendSepolicyTests.sh | 8 |
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 } |