run-tests: make mirror test independent of update test

This commit is contained in:
Jochen Sprickerhof 2022-11-25 12:23:48 +01:00 committed by Hans-Christoph Steiner
parent a667074d89
commit 55c3a28568
1 changed files with 4 additions and 1 deletions

View File

@ -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