From 0a15a9b65be29dfd5beefa8389564e008a6e1c69 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Fri, 25 May 2018 09:52:17 +0200 Subject: [PATCH] tests: fix and test `fdroid deploy` --- fdroid | 2 +- tests/run-tests | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fdroid b/fdroid index ec9bae2c..4147119d 100755 --- a/fdroid +++ b/fdroid @@ -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 diff --git a/tests/run-tests b/tests/run-tests index 16ecfdb9..e0ea2aa1 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -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