From ad1795f6ed72448ba73cd2288affdbd4d3147db8 Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Sat, 3 Nov 2018 20:57:44 +0100 Subject: [PATCH] Also check in aosp 8.1 --- tests/tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/tests.sh b/tests/tests.sh index 938607e..fa8ffcd 100644 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -41,7 +41,9 @@ find -name AndroidManifest.xml |while read manifest;do grep -qE '^'$key'$' tests/knownKeys && continue #Run the ag only on phh's machine. Assume that knownKeys is full enough. #If it's enough, ask phh to update it - if [ -d /build/AOSP-9.0 ] && ag '"'$key'"' /build/AOSP-9.0/frameworks/base/core/res/res > /dev/null;then + if [ -d /build/AOSP-9.0 ] && \ + (ag '"'$key'"' /build/AOSP-9.0/frameworks/base/core/res/res || \ + ag '"'$key'"' /build/AOSP-8.1/frameworks/base/core/res/res)> /dev/null ;then echo $key >> tests/knownKeys else echo $xml defines a non-existing attribute $key