mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
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:
parent
031b4a74e7
commit
49b343d024
@ -10,7 +10,7 @@ echo_header() {
|
|||||||
|
|
||||||
copy_apks_into_repo() {
|
copy_apks_into_repo() {
|
||||||
set +x
|
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`))
|
name=$(basename $(dirname `dirname $f`))
|
||||||
apk=`$aapt dump badging "$f" | sed -n "s,^package: name='\(.*\)' versionCode='\([0-9][0-9]*\)' .*,\1_\2.apk,p"`
|
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
|
test $f -nt repo/$apk && rm -f repo/$apk # delete existing if $f is newer
|
||||||
|
Loading…
Reference in New Issue
Block a user