test/testcases_fast.sh: correct pmaports location (MR 1974)

This makes the script ask pmbootstrap what is the correct directory
instead of hardcoding the default value.
This commit is contained in:
Antoine Fontaine 2020-09-12 10:24:47 +02:00
parent be41c94c57
commit 1b5120e24f
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ cd "$(dirname "$0")/.."
# Make sure we have a valid device (#1128)
device="$(./pmbootstrap.py config device)"
work="$(./pmbootstrap.py config work)"
deviceinfo="$work/cache_git/pmaports/device/*/device-$device/deviceinfo"
pmaports="$(./pmbootstrap.py config aports)"
deviceinfo="$pmaports/device/*/device-$device/deviceinfo"
# shellcheck disable=SC2086
if ! [ -e $deviceinfo ]; then
echo "ERROR: Could not find deviceinfo file for selected device '$device'."