CI: Select all packages in sharded tests (#105725)

pull/105728/head
Mariell Hoversholm 1 month ago committed by GitHub
parent 10b097efa4
commit 8caa62ede0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      scripts/ci/backend-tests/pkgs-with-tests-named.sh
  2. 2
      scripts/ci/backend-tests/shard.sh

@ -44,7 +44,7 @@ done
shift $((OPTIND - 1))
if [[ ${#dirs[@]} -eq 0 ]]; then
dirs+=("./...")
readarray -t dirs <<< "$(find . -type f -name 'go.mod' -exec dirname '{}' ';' | awk '{ print $1 "/..."; }')"
fi
if [ -z "$beginningWith" ]; then
for pkg in "${dirs[@]}"; do

@ -100,7 +100,7 @@ if [[ $n -gt $m ]]; then
exit 1
fi
if [[ ${#dirs[@]} -eq 0 ]]; then
dirs+=("./...")
readarray -t dirs <<< "$(find . -type f -name 'go.mod' -exec dirname '{}' ';' | awk '{ print $1 "/..."; }')"
fi
# If dirs is just ("-"), read from stdin instead.
if [[ ${#dirs[@]} -eq 1 && "${dirs[0]}" == "-" ]]; then

Loading…
Cancel
Save