···120120 if [ -n "$subPackages" ] ; then
121121 for p in $subPackages ; do
122122 go test -p $NIX_BUILD_CORES -v $goPackagePath/$p &
123123+ PIDS+=("$!")
123124 done
124124- PIDS+=("$!")
125125 else
126126 pushd go/src
127127 while read d; do
128128 go test -p $NIX_BUILD_CORES -v $d &
129129+ PIDS+=("$!")
129130 done < <(find $goPackagePath -type f -name \*_test.go -exec dirname {} \; | sort | uniq)
130131 popd
131131- PIDS+=("$!")
132132 fi
133133134134 # Exit on error from the parallel process