mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
run-tests: verbose output for fdroid update to aid debugging
I'm stumped by this stacktrace, hopefully debug logging will help:
Unknown exception found!
Traceback (most recent call last):
File "./fdroidserver-0.4.0/fdroid", line 141, in <module>
main()
File "./fdroidserver-0.4.0/fdroid", line 119, in main
mod.main()
File "<http://localhost:18080/job/fdroidserver/ws/.testfiles/tmp.9hr9NiSmZs/fdroidserver-0.4.0/fdroidserver/update.py",> line 1146, in main
apks, cachechanged = scan_apks(apps, apkcache, repodirs[0], knownapks)
File "<http://localhost:18080/job/fdroidserver/ws/.testfiles/tmp.9hr9NiSmZs/fdroidserver-0.4.0/fdroidserver/update.py",> line 543, in scan_apks
thisinfo['sig'] = getsig(os.path.join(os.getcwd(), apkfile))
File "<http://localhost:18080/job/fdroidserver/ws/.testfiles/tmp.9hr9NiSmZs/fdroidserver-0.4.0/fdroidserver/update.py",> line 361, in getsig
with zipfile.ZipFile(apkpath, 'r') as apk:
File "/usr/lib/python2.7/zipfile.py", line 770, in __init__
self._RealGetContents()
File "/usr/lib/python2.7/zipfile.py", line 857, in _RealGetContents
x._decodeExtra()
File "/usr/lib/python2.7/zipfile.py", line 388, in _decodeExtra
tp, ln = unpack('<HH', extra[:4])
struct.error: unpack requires a string argument of length 4
This commit is contained in:
parent
0be343273d
commit
25caa09420
1 changed files with 12 additions and 13 deletions
|
|
@ -168,7 +168,7 @@ tar xzf `ls -1 $WORKSPACE/dist/fdroidserver-*.tar.gz | sort -n | tail -1`
|
||||||
cd $REPOROOT
|
cd $REPOROOT
|
||||||
./fdroidserver-*/fdroid init
|
./fdroidserver-*/fdroid init
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
./fdroidserver-*/fdroid update --create-metadata
|
./fdroidserver-*/fdroid update --create-metadata --verbose
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
|
|
@ -177,7 +177,7 @@ echo_header "test config checks of local_copy_dir"
|
||||||
REPOROOT=`create_test_dir`
|
REPOROOT=`create_test_dir`
|
||||||
cd $REPOROOT
|
cd $REPOROOT
|
||||||
$fdroid init
|
$fdroid init
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata --verbose
|
||||||
$fdroid readmeta
|
$fdroid readmeta
|
||||||
$fdroid server update --local-copy-dir=/tmp/fdroid
|
$fdroid server update --local-copy-dir=/tmp/fdroid
|
||||||
|
|
||||||
|
|
@ -214,7 +214,7 @@ REPOROOT=`create_test_dir`
|
||||||
cd $REPOROOT
|
cd $REPOROOT
|
||||||
$fdroid init
|
$fdroid init
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata --verbose
|
||||||
$fdroid readmeta
|
$fdroid readmeta
|
||||||
grep -F '<application id=' repo/index.xml > /dev/null
|
grep -F '<application id=' repo/index.xml > /dev/null
|
||||||
|
|
||||||
|
|
@ -318,7 +318,7 @@ cd $REPOROOT
|
||||||
$fdroid init --keystore $KEYSTORE --android-home $STORED_ANDROID_HOME --no-prompt
|
$fdroid init --keystore $KEYSTORE --android-home $STORED_ANDROID_HOME --no-prompt
|
||||||
test -e $KEYSTORE
|
test -e $KEYSTORE
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata --verbose
|
||||||
$fdroid readmeta
|
$fdroid readmeta
|
||||||
grep -F '<application id=' repo/index.xml > /dev/null
|
grep -F '<application id=' repo/index.xml > /dev/null
|
||||||
test -e repo/index.xml
|
test -e repo/index.xml
|
||||||
|
|
@ -334,7 +334,7 @@ cd $REPOROOT
|
||||||
mkdir repo
|
mkdir repo
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid init
|
$fdroid init
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata --verbose
|
||||||
$fdroid readmeta
|
$fdroid readmeta
|
||||||
grep -F '<application id=' repo/index.xml > /dev/null
|
grep -F '<application id=' repo/index.xml > /dev/null
|
||||||
|
|
||||||
|
|
@ -348,7 +348,7 @@ cd $REPOROOT
|
||||||
$fdroid init --keystore $KEYSTORE
|
$fdroid init --keystore $KEYSTORE
|
||||||
test -e $KEYSTORE
|
test -e $KEYSTORE
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata --verbose
|
||||||
$fdroid readmeta
|
$fdroid readmeta
|
||||||
test -e repo/index.xml
|
test -e repo/index.xml
|
||||||
test -e repo/index.jar
|
test -e repo/index.jar
|
||||||
|
|
@ -376,7 +376,7 @@ set -e
|
||||||
$fdroid update --create-key
|
$fdroid update --create-key
|
||||||
test -e $KEYSTORE
|
test -e $KEYSTORE
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata --verbose
|
||||||
$fdroid readmeta
|
$fdroid readmeta
|
||||||
test -e repo/index.xml
|
test -e repo/index.xml
|
||||||
test -e repo/index.jar
|
test -e repo/index.jar
|
||||||
|
|
@ -392,14 +392,14 @@ cd $REPOROOT
|
||||||
$fdroid init --keystore $KEYSTORE
|
$fdroid init --keystore $KEYSTORE
|
||||||
test -e $KEYSTORE
|
test -e $KEYSTORE
|
||||||
copy_apks_into_repo $REPOROOT
|
copy_apks_into_repo $REPOROOT
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata --verbose
|
||||||
$fdroid readmeta
|
$fdroid readmeta
|
||||||
test -e repo/index.xml
|
test -e repo/index.xml
|
||||||
test -e repo/index.jar
|
test -e repo/index.jar
|
||||||
grep -F '<application id=' repo/index.xml > /dev/null
|
grep -F '<application id=' repo/index.xml > /dev/null
|
||||||
test -e $REPOROOT/repo/info.guardianproject.urzip_100.apk || \
|
test -e $REPOROOT/repo/info.guardianproject.urzip_100.apk || \
|
||||||
cp $WORKSPACE/tests/urzip.apk $REPOROOT/repo/
|
cp $WORKSPACE/tests/urzip.apk $REPOROOT/repo/
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata --verbose
|
||||||
$fdroid readmeta
|
$fdroid readmeta
|
||||||
test -e repo/index.xml
|
test -e repo/index.xml
|
||||||
test -e repo/index.jar
|
test -e repo/index.jar
|
||||||
|
|
@ -408,7 +408,6 @@ grep -F '<application id=' repo/index.xml > /dev/null
|
||||||
|
|
||||||
#------------------------------------------------------------------------------#
|
#------------------------------------------------------------------------------#
|
||||||
echo_header "setup a new repo from scratch with a HSM/smartcard"
|
echo_header "setup a new repo from scratch with a HSM/smartcard"
|
||||||
|
|
||||||
REPOROOT=`create_test_dir`
|
REPOROOT=`create_test_dir`
|
||||||
cd $REPOROOT
|
cd $REPOROOT
|
||||||
$fdroid init --keystore NONE
|
$fdroid init --keystore NONE
|
||||||
|
|
@ -427,7 +426,7 @@ touch fdroid-icon.png
|
||||||
mkdir repo
|
mkdir repo
|
||||||
cp $WORKSPACE/tests/urzip.apk $REPOROOT/repo/
|
cp $WORKSPACE/tests/urzip.apk $REPOROOT/repo/
|
||||||
set +e
|
set +e
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata --verbose
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "This should have failed because this repo has no keystore!"
|
echo "This should have failed because this repo has no keystore!"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -443,7 +442,7 @@ echo 'repo_keyalias = "foo"' >> config.py
|
||||||
echo 'keystorepass = "foo"' >> config.py
|
echo 'keystorepass = "foo"' >> config.py
|
||||||
echo 'keypass = "foo"' >> config.py
|
echo 'keypass = "foo"' >> config.py
|
||||||
set +e
|
set +e
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata --verbose
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "This should have failed because this repo has a bad/fake keystore!"
|
echo "This should have failed because this repo has a bad/fake keystore!"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -462,7 +461,7 @@ cd $REPOROOT
|
||||||
$fdroid init --keystore $KEYSTORE
|
$fdroid init --keystore $KEYSTORE
|
||||||
test -e $KEYSTORE
|
test -e $KEYSTORE
|
||||||
cp $WORKSPACE/tests/urzip.apk $REPOROOT/repo/
|
cp $WORKSPACE/tests/urzip.apk $REPOROOT/repo/
|
||||||
$fdroid update --create-metadata
|
$fdroid update --create-metadata --verbose
|
||||||
$fdroid readmeta
|
$fdroid readmeta
|
||||||
test -e repo/index.xml
|
test -e repo/index.xml
|
||||||
test -e repo/index.jar
|
test -e repo/index.jar
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue