mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
run-tests: exit with error if no test APKs are found
There must be at least one APK available for this test suite to work, for example, this test: grep -F '<application id=' repo/index.xml This can't be easily implemented using an env vir beccause the while loop is running in a pipe, so a different process. copy_apks_into_repo is used with throwaway tmp dirs, so the stamp file should work well.
This commit is contained in:
parent
3e35b2dd27
commit
48e11ea3f1
@ -24,8 +24,13 @@ copy_apks_into_repo() {
|
|||||||
echo "$f --> repo/$apk"
|
echo "$f --> repo/$apk"
|
||||||
ln "$f" $1/repo/$apk || \
|
ln "$f" $1/repo/$apk || \
|
||||||
rsync -axv "$f" $1/repo/$apk # rsync if hard link is not possible
|
rsync -axv "$f" $1/repo/$apk # rsync if hard link is not possible
|
||||||
|
touch $1/.found-apks
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ ! -e $1/.found-apks ]; then
|
||||||
|
echo "ERROR: The dir APKDIR must have APKs in it! $APKDIR does not."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
set -x
|
set -x
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user