Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions test/ci-make
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ usage() {
exit 1
}

if [ $# -eq 0 ] || [ "$1" = -h -o "$1" = --help ]; then
Comment thread
yusufraji marked this conversation as resolved.
if [ $# -eq 0 ] || [ "$1" = -h ] || [ "$1" = --help ]; then
usage
fi

Expand All @@ -26,21 +26,27 @@ run() {
fi
}

tmpfiles=()
tmpdir=$(mktemp -d)
# Leak the files in tmpdir on purpose so that they can be examined.
echo "ci-make writing to $tmpdir"

i=0
for target in "${targets[@]}"; do
tmp=$(mktemp)
tmpfiles+=("$tmp")
tmp="$tmpdir/$i"
i=$(( i + 1 ))
( run "$target" 2>&1 | test/target/debug/log-timestamp > "$tmp" ) &
done

for target in "${targets[@]}"; do
for _target in "${targets[@]}"; do
wait || true
done

exit_code=0

for tmp in "${tmpfiles[@]}"; do
i=0
for _target in "${targets[@]}"; do
tmp="$tmpdir/$i"
i=$(( i + 1 ))
echo "========================================================================================"
if tail -1 "$tmp" | grep -q ": Ok."; then
if [ "${CI_MAKE_VERBOSE-}" == 1 ]; then
Expand Down
Loading