mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
Kill all concurrent jobs on error
Docker-DCO-1.1-Signed-off-by: Tibor Vass <teabee89@gmail.com> (github: tiborvass)
This commit is contained in:
@@ -175,6 +175,7 @@ go_compile_test_dir() {
|
||||
cd "$dir"
|
||||
go test "${testcover[@]}" -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS -c
|
||||
)
|
||||
[ $? -ne 0 ] && return 1
|
||||
mkdir -p "$(dirname "$out_file")"
|
||||
mv "$dir/$(basename "$dir").test" "$out_file"
|
||||
echo "Precompiled: github.com/dotcloud/docker${dir#.}"
|
||||
|
||||
@@ -38,7 +38,7 @@ bundle_test_unit() {
|
||||
export BUILDFLAGS_FILE="$HOME/buildflags_file"
|
||||
( IFS=$'\n'; echo "${BUILDFLAGS[*]}" ) > "$BUILDFLAGS_FILE"
|
||||
|
||||
echo "$TESTDIRS" | parallel --jobs "$PARALLEL_JOBS" --env _ go_compile_test_dir
|
||||
echo "$TESTDIRS" | parallel --jobs "$PARALLEL_JOBS" --halt 2 --env _ go_compile_test_dir
|
||||
rm -rf "$HOME"
|
||||
) else
|
||||
# aww, no "parallel" available - fall back to boring
|
||||
|
||||
Reference in New Issue
Block a user