From 48e11ea3f1bfd43917ce35e2f83b31e4dd29aab2 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 12 Oct 2020 17:39:40 +0200 Subject: [PATCH] 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 ' repo/$apk" ln "$f" $1/repo/$apk || \ rsync -axv "$f" $1/repo/$apk # rsync if hard link is not possible + touch $1/.found-apks fi 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 }