diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-04 06:23:35 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-11-04 06:23:35 +0000 |
commit | 8d4746e73b1e26d076366dc88e3d78147fda9697 (patch) | |
tree | 1b4377c06164b04ab7ff86996a7ad5c2fcef1966 | |
parent | 7eba1400345d08435cfce60211169d3ec76715d8 (diff) | |
parent | 0af85b1021489e254d3a3354c1edbb8715c68ba8 (diff) | |
download | interfaces-android14-mainline-appsearch-release.tar.gz |
Snap for 11051817 from 0af85b1021489e254d3a3354c1edbb8715c68ba8 to mainline-appsearch-releaseaml_ase_341510000aml_ase_341410000aml_ase_341310010android14-mainline-appsearch-release
Change-Id: I8efe7fcd505cda4afe27fc051ac17dc8f1ec4ec1
-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 } |