mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
buildGoPackage: Fix parallel test pid computation
This commit is contained in:
parent
859576c895
commit
c2ae91a413
1 changed files with 2 additions and 2 deletions
|
@ -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 &
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue