1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-05 18:50:09 +02:00
fdroidserver/tests
Hans-Christoph Steiner 25caa09420 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
2016-01-21 12:26:50 +01:00
..
getsig include test cases for python getsig replacement 2014-11-07 09:20:33 +00:00
metadata Add Author Name and Author Email fields. (Closes: #90) 2016-01-03 23:00:03 +01:00
source-files build: improve regsub pattern for setting buildToolsVersion 2015-08-19 17:55:17 +02:00
build.TestCase tests: we now replace "buildToolsVersion var" too 2015-10-24 18:47:43 +02:00
common.TestCase Rework build into a class 2015-12-02 20:03:11 +01:00
complete-ci-tests move tests into common script for jenkins and gitlab-ci 2015-09-01 19:52:37 +02:00
description-parsing.py auto-clean newlines and spaces in repo/archive descriptions 2014-07-14 15:01:57 -04:00
import_proxy.py add a basic test of fdroid import 2015-09-10 11:08:40 +02:00
import.TestCase Rework app into a class 2015-11-28 17:11:05 +01:00
install.TestCase add test files to pre-commit hook and fix pep8 errors 2015-09-01 11:39:50 +02:00
metadata.TestCase metadata: properly store nums as strs and bools as bools 2015-12-02 20:49:42 +01:00
run-tests run-tests: verbose output for fdroid update to aid debugging 2016-01-21 12:26:50 +01:00
update.TestCase add test files to pre-commit hook and fix pep8 errors 2015-09-01 11:39:50 +02:00
urzip-badcert.apk include test cases for python getsig replacement 2014-11-07 09:20:33 +00:00
urzip-badsig.apk include test cases for python getsig replacement 2014-11-07 09:20:33 +00:00
urzip-release-unsigned.apk added test case for common.isApkDebuggable() 2014-12-14 13:25:20 +01:00
urzip-release.apk added test case for common.isApkDebuggable() 2014-12-14 13:25:20 +01:00
urzip.apk tests: try fdroid update after adding an APK to an existing repo 2014-06-04 21:54:55 -04:00