Skip to content

Commit

Permalink
use parallel for the e2e tests, xargs is unreliable for some reason
Browse files Browse the repository at this point in the history
  • Loading branch information
robwhitby committed Oct 2, 2023
1 parent 84ed70c commit 612ca85
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion e2e/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,10 @@ runTest() {

rm -rf /tmp/halfpipe-e2e
export -f runTest
ls -d */*/ | xargs -ID -P1 bash -c "runTest D || exit 1"

if command -v parallel > /dev/null; then
ls -d */*/ | parallel -j16 runTest
else
# xargs doesn't return exit code reliably with parallel
ls -d */*/ | xargs -ID -P1 bash -c "runTest D"
fi

0 comments on commit 612ca85

Please sign in to comment.