itest: ensure LND gets correct CLI options when itest are parallel

This commit is contained in:
Alex Akselrod 2024-08-21 17:13:07 -07:00
parent dcd921ad69
commit 8d5f8d822d
No known key found for this signature in database
GPG Key ID: 57D7612D178AA487

View File

@ -3,8 +3,9 @@
# Get all the variables. # Get all the variables.
PROCESSES=$1 PROCESSES=$1
TRANCHES=$2 TRANCHES=$2
TEST_FLAGS=$3
ITEST_FLAGS=$4 # Here we also shift 2 times and get the rest of our flags to pass on in $@.
shift 2
# Create a variable to hold the final exit code. # Create a variable to hold the final exit code.
exit_code=0 exit_code=0
@ -12,7 +13,7 @@ exit_code=0
# Run commands using xargs in parallel and capture their PIDs # Run commands using xargs in parallel and capture their PIDs
pids=() pids=()
for ((i=0; i<PROCESSES; i++)); do for ((i=0; i<PROCESSES; i++)); do
scripts/itest_part.sh $i $TRANCHES $TEST_FLAGS $ITEST_FLAGS & scripts/itest_part.sh $i $TRANCHES $@ &
pids+=($!) pids+=($!)
done done