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

View file

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