mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
tests: turn off unneeded debug logging during APK copying
The whole process of finding and copying APKs can be very verbose, so turn of the bash verbose logging during that process.
This commit is contained in:
parent
e68413a752
commit
97334286ea
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -e # quit script on error
|
||||||
set -x
|
set -x # show each command as it is executed
|
||||||
|
|
||||||
echo_header() {
|
echo_header() {
|
||||||
echo "=============================================================================="
|
echo "=============================================================================="
|
||||||
@ -9,6 +9,7 @@ echo_header() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
copy_apks_into_repo() {
|
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`; 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"`
|
||||||
@ -19,6 +20,7 @@ copy_apks_into_repo() {
|
|||||||
rsync -axv $f $1/repo/$apk # rsync if hard link is not possible
|
rsync -axv $f $1/repo/$apk # rsync if hard link is not possible
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
set -x
|
||||||
}
|
}
|
||||||
|
|
||||||
create_fake_android_home() {
|
create_fake_android_home() {
|
||||||
|
Loading…
Reference in New Issue
Block a user