Still need to have AAPT in path
When running the tests without AAPT in $PATH
, it fails with the following error:
DEBUG:git.cmd:Popen(['git', 'init'], cwd=/home/nico/Work/Current/F-Droid/repomaker/test_dir/media/git-mirror, universal_newlines=False, shell=None)
DEBUG:git.cmd:Popen(['git', 'remote', 'add', 'example', 'git@example.org:user/repo.git'], cwd=/home/nico/Work/Current/F-Droid/repomaker/test_dir/media/git-mirror, universal_newlines=False, shell=None)
INFO:root:Mirroring to: git@example.org:user/repo.git
DEBUG:root:Adding all files to git mirror
DEBUG:git.cmd:Popen(['git', 'add', '--all'], cwd=/home/nico/Work/Current/F-Droid/repomaker/test_dir/media/git-mirror, universal_newlines=False, shell=None)
DEBUG:root:Committing all files into git mirror
DEBUG:git.cmd:Popen(['git', 'cat-file', '--batch-check'], cwd=/home/nico/Work/Current/F-Droid/repomaker/test_dir/media/git-mirror, universal_newlines=False, shell=None)
DEBUG:git.cmd:Popen(['git', 'cat-file', '--batch'], cwd=/home/nico/Work/Current/F-Droid/repomaker/test_dir/media/git-mirror, universal_newlines=False, shell=None)
DEBUG:root:Pushing to git@example.org:user/repo.git
..........WARNING:root:APK does not exist anymore, dropping task. (Apk matching query does not exist.)
..WARNING:root:App does not exist anymore, dropping task. (App matching query does not exist.)
.WARNING:root:Remote App does not exist anymore, dropping task. (RemoteApp matching query does not exist.)
..WARNING:root:Remote Screenshot does not exist anymore, dropping task. (RemoteScreenshot matching query does not exist.)
....WARNING:root:Remote Repository does not exist anymore, dropping task. (RemoteRepository matching query does not exist.)
...WARNING:root:Repository does not exist anymore, dropping task. (Repository matching query does not exist.)
..........INFO:root:Deleting Repo: Test Name
...INFO:root:Deleting Repo: Test Name
....
======================================================================
ERROR: test_initialize (maker.tests.models.test_apk.ApkTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nico/Work/Current/F-Droid/repomaker/maker/models/apk.py", line 138, in _get_info_from_apk
repo_file = update.scan_apk(self.file.path)
File "/home/nico/.local/lib/python3.4/site-packages/fdroidserver/update.py", line 914, in scan_apk
raise BuildException("Invalid signature")
fdroidserver.exception.BuildException: Invalid signature
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/nico/Work/Current/F-Droid/repomaker/maker/tests/models/test_apk.py", line 223, in test_initialize
self.apk.initialize()
File "/home/nico/Work/Current/F-Droid/repomaker/maker/models/apk.py", line 95, in initialize
repo_file = self._get_info_from_apk()
File "/home/nico/Work/Current/F-Droid/repomaker/maker/models/apk.py", line 141, in _get_info_from_apk
raise ValidationError(e)
django.core.exceptions.ValidationError: ['Invalid signature']
======================================================================
ERROR: test_initialize_rejects_existing_apk (maker.tests.models.test_apk.ApkTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nico/Work/Current/F-Droid/repomaker/maker/models/apk.py", line 138, in _get_info_from_apk
repo_file = update.scan_apk(self.file.path)
File "/home/nico/.local/lib/python3.4/site-packages/fdroidserver/update.py", line 914, in scan_apk
raise BuildException("Invalid signature")
fdroidserver.exception.BuildException: Invalid signature
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/nico/Work/Current/F-Droid/repomaker/maker/tests/models/test_apk.py", line 252, in test_initialize_rejects_existing_apk
self.apk.initialize(self.repo)
File "/home/nico/Work/Current/F-Droid/repomaker/maker/models/apk.py", line 95, in initialize
repo_file = self._get_info_from_apk()
File "/home/nico/Work/Current/F-Droid/repomaker/maker/models/apk.py", line 141, in _get_info_from_apk
raise ValidationError(e)
django.core.exceptions.ValidationError: ['Invalid signature']
======================================================================
ERROR: test_initialize_reuses_existing_apk (maker.tests.models.test_apk.ApkTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nico/Work/Current/F-Droid/repomaker/maker/models/apk.py", line 138, in _get_info_from_apk
repo_file = update.scan_apk(self.file.path)
File "/home/nico/.local/lib/python3.4/site-packages/fdroidserver/update.py", line 914, in scan_apk
raise BuildException("Invalid signature")
fdroidserver.exception.BuildException: Invalid signature
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/nico/Work/Current/F-Droid/repomaker/maker/tests/models/test_apk.py", line 263, in test_initialize_reuses_existing_apk
self.apk.initialize()
File "/home/nico/Work/Current/F-Droid/repomaker/maker/models/apk.py", line 95, in initialize
repo_file = self._get_info_from_apk()
File "/home/nico/Work/Current/F-Droid/repomaker/maker/models/apk.py", line 141, in _get_info_from_apk
raise ValidationError(e)
django.core.exceptions.ValidationError: ['Invalid signature']
======================================================================
ERROR: test_initialize (maker.tests.models.test_apkpointer.ApkPointerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/nico/Work/Current/F-Droid/repomaker/maker/models/apk.py", line 138, in _get_info_from_apk
repo_file = update.scan_apk(self.file.path)
File "/home/nico/.local/lib/python3.4/site-packages/fdroidserver/update.py", line 914, in scan_apk
raise BuildException("Invalid signature")
fdroidserver.exception.BuildException: Invalid signature
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/nico/Work/Current/F-Droid/repomaker/maker/tests/models/test_apkpointer.py", line 53, in test_initialize
self.apk.initialize(self.repo) # this calls self.apk_pointer.initialize()
File "/home/nico/Work/Current/F-Droid/repomaker/maker/models/apk.py", line 95, in initialize
repo_file = self._get_info_from_apk()
File "/home/nico/Work/Current/F-Droid/repomaker/maker/models/apk.py", line 141, in _get_info_from_apk
raise ValidationError(e)
django.core.exceptions.ValidationError: ['Invalid signature']
======================================================================
FAIL: test_download (maker.tests.models.test_apk.ApkTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/mock.py", line 1136, in patched
return func(*args, **keywargs)
File "/home/nico/Work/Current/F-Droid/repomaker/maker/tests/models/test_apk.py", line 103, in test_download
self.assertEqual(get_apk_file_path(self.apk, 'download.apk'), self.apk.file.name)
AssertionError: 'packages/download.apk' != None
======================================================================
FAIL: test_full_cyclic_integration (maker.tests.models.test_repository.RepositoryTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.4/unittest/mock.py", line 1136, in patched
return func(*args, **keywargs)
File "/home/nico/Work/Current/F-Droid/repomaker/maker/tests/models/test_repository.py", line 373, in test_full_cyclic_integration
self.assertEqual(3, get.call_count)
AssertionError: 3 != 2
----------------------------------------------------------------------
Ran 152 tests in 18.474s
FAILED (failures=2, errors=4)
Destroying test database for alias 'default'...
Additional information
➜ repomaker git:(master) ✗ echo $PATH
/home/nico/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
With export PATH=/home/nico/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/nico/.android-sdk/build-tools/25.0.2/
it works. I'm on master
with all python dependencies upgraded via pip3 install -r requirements.txt --user --upgrade
.