forked from mirrors/nixpkgs
buildGoPackage: Fix parallel test pid computation
This commit is contained in:
parent
859576c895
commit
c2ae91a413
|
@ -120,15 +120,15 @@ go.stdenv.mkDerivation (
|
|||
if [ -n "$subPackages" ] ; then
|
||||
for p in $subPackages ; do
|
||||
go test -p $NIX_BUILD_CORES -v $goPackagePath/$p &
|
||||
done
|
||||
PIDS+=("$!")
|
||||
done
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue