From 55c3a28568eb811e18675c9c92897bd5220a9c66 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Fri, 25 Nov 2022 12:23:48 +0100 Subject: [PATCH] run-tests: make mirror test independent of update test --- tests/run-tests | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/run-tests b/tests/run-tests index ec5591e3..7556f149 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -1277,10 +1277,13 @@ fi echo_header 'test mirroring a repo' if which wget; then + TESTROOT=`create_test_dir` REPOROOT=`create_test_dir` - cd $WORKSPACE/tests + cp -r "$WORKSPACE/tests" "$TESTROOT" + cd "$TESTROOT/tests" test -d archive || mkdir archive cp repo/index-v1.json $REPOROOT/ + $fdroid update $fdroid signindex mv $REPOROOT/index-v1.json repo/index-v1.json