run-tests: make sure not to include the bad APKs in tests/

These APKs are meant for specific tests, not the tests that want just a
collection of good APKs.
This commit is contained in:
Hans-Christoph Steiner 2014-11-17 17:24:02 +01:00
parent 031b4a74e7
commit 49b343d024
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ echo_header() {
copy_apks_into_repo() {
set +x
for f in `find $APKDIR -name '*.apk' | grep -F -v -e unaligned -e unsigned`; do
for f in `find $APKDIR -name '*.apk' | grep -F -v -e unaligned -e unsigned -e badsig -e badcert`; do
name=$(basename $(dirname `dirname $f`))
apk=`$aapt dump badging "$f" | sed -n "s,^package: name='\(.*\)' versionCode='\([0-9][0-9]*\)' .*,\1_\2.apk,p"`
test $f -nt repo/$apk && rm -f repo/$apk # delete existing if $f is newer