buildGoPackage: Fix parallel test pid computation

Changed files
+2 -2
pkgs
development
go-modules
generic
+2 -2
pkgs/development/go-modules/generic/default.nix
···
if [ -n "$subPackages" ] ; then
for p in $subPackages ; do
go test -p $NIX_BUILD_CORES -v $goPackagePath/$p &
+
PIDS+=("$!")
done
-
PIDS+=("$!")
else
pushd go/src
while read d; do
go test -p $NIX_BUILD_CORES -v $d &
+
PIDS+=("$!")
done < <(find $goPackagePath -type f -name \*_test.go -exec dirname {} \; | sort | uniq)
popd
-
PIDS+=("$!")
fi
# Exit on error from the parallel process