tests: fix and test `fdroid deploy`

This commit is contained in:
Hans-Christoph Steiner 2018-05-25 09:52:17 +02:00
parent 1daa1063c5
commit 0a15a9b65b
2 changed files with 3 additions and 1 deletions

2
fdroid
View File

@ -126,7 +126,7 @@ def main():
# temporary workaround until server.py becomes deploy.py
if command == 'deploy':
command = 'server'
sys.argv.insert(1, 'update')
sys.argv.insert(2, 'update')
# Trick optparse into displaying the right usage when --help is used.
sys.argv[0] += ' ' + command

View File

@ -610,6 +610,7 @@ $fdroid gpgsign
$fdroid lint
$fdroid readmeta
$fdroid rewritemeta fake
$fdroid deploy
$fdroid server update
$fdroid scanner
@ -643,6 +644,7 @@ $fdroid init
$fdroid update --create-metadata --verbose
$fdroid readmeta
$fdroid server update --local-copy-dir=/tmp/fdroid
$fdroid deploy --local-copy-dir=/tmp/fdroid --verbose
# now test the errors work
set +e