From 20a737dc9080390dc8a37ebce246d5a7f7b915bd Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 7 Jun 2016 12:27:11 +0200 Subject: [PATCH] tests: Pull things via http instead of local pulls This causes us to use the same codepaths as in real use. Also, there seems to be an issue with partial pulls for local remotes. --- tests/libtest.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/libtest.sh b/tests/libtest.sh index 26908c771..4759c85ed 100644 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -167,7 +167,9 @@ export FL_GPGARGS="--gpg-homedir=${FL_GPG_HOMEDIR} --gpg-sign=${FL_GPG_ID}" setup_repo () { GPGARGS="$FL_GPGARGS" . $(dirname $0)/make-test-runtime.sh org.test.Platform bash ls cat echo readlink > /dev/null GPGARGS="$FL_GPGARGS" . $(dirname $0)/make-test-app.sh > /dev/null - flatpak remote-add ${U} --gpg-import=${FL_GPG_HOMEDIR}/pubring.gpg test-repo repo + ostree trivial-httpd --autoexit --daemonize -p httpd-port . + port=$(cat httpd-port) + flatpak remote-add ${U} --gpg-import=${FL_GPG_HOMEDIR}/pubring.gpg test-repo "http://127.0.0.1:${port}/repo" } make_updated_app () {