diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-10-31 23:14:17 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-10-31 23:14:17 +0000 |
commit | 78c7e489f8441409e06bf315db5047a368edc635 (patch) | |
tree | 1b4377c06164b04ab7ff86996a7ad5c2fcef1966 | |
parent | bccb5422a266659adbd81536b9b8f08c34561bb9 (diff) | |
parent | 0af85b1021489e254d3a3354c1edbb8715c68ba8 (diff) | |
download | interfaces-android14-mainline-os-statsd-release.tar.gz |
Snap for 11031605 from 0af85b1021489e254d3a3354c1edbb8715c68ba8 to mainline-os-statsd-releaseaml_sta_341710000aml_sta_341615000aml_sta_341511040aml_sta_341410000aml_sta_341311010android14-mainline-os-statsd-release
Change-Id: If7555a0f16c8e9faf2b26b5bf4651070014d798a
-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 } |