Skip to content

Commit

Permalink
Merge pull request #1781 from tmjd/batch-job-tweaking
Browse files Browse the repository at this point in the history
FV: Understand if there are silent failures
  • Loading branch information
tmjd committed Apr 9, 2018
2 parents c96e606 + 5428b5b commit a18dbc7
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions fv/run-batches
@@ -1,4 +1,4 @@
#!/bin/bash -ex
#!/bin/bash -x

# Copyright (c) 2018 Tigera, Inc. All rights reserved.
#
Expand Down Expand Up @@ -29,13 +29,28 @@ for batch in ${FV_BATCHES_TO_RUN}; do
-ginkgo.randomizeAllSpecs=true \
-ginkgo.slowSpecThreshold ${FV_SLOW_SPEC_THRESH} \
-ginkgo.focus="${GINKGO_FOCUS}" \
${GINKGO_ARGS}; \
${GINKGO_ARGS}
status=$?
echo "Test batch $batch completed with status $status"
exit $status
) &
pids[${batch}]=$!
done

result=0
for batch in ${FV_BATCHES_TO_RUN}; do
echo "Waiting on batch $batch; PID=${pids[$batch]}"
wait ${pids[$batch]}
echo "Result: $?"
st=$?
echo "Result: $st"
if [ $st -ne 0 ]; then
result=1
fi
done

if [ $result -eq 0 ]; then
echo "All tests passed"
else
echo "Tests failed"
exit 1
fi

0 comments on commit a18dbc7

Please sign in to comment.