test/testcases_fast.sh: stop hardcoding testing/ directory (!1899)
Take the change from pmaports that expands a glob for more flexibility.
This commit is contained in:
parent
37cc4454a4
commit
b4c54636b3
|
@ -21,8 +21,9 @@ 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/testing/device-$device/deviceinfo"
|
||||
if ! [ -e "$deviceinfo" ]; then
|
||||
deviceinfo="$work/cache_git/pmaports/device/*/device-$device/deviceinfo"
|
||||
# shellcheck disable=SC2086
|
||||
if ! [ -e $deviceinfo ]; then
|
||||
echo "ERROR: Could not find deviceinfo file for selected device '$device'."
|
||||
echo "Expected path: $deviceinfo"
|
||||
echo "Maybe you have switched to a branch where your device does not exist?"
|
||||
|
|
Loading…
Reference in New Issue