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

This commit is contained in:
Alex Akselrod committed 2024-08-24 13:28:14 -07:00
1 parent dcd921ad69
commit 8d5f8d822d
1 file changed
+4 -3
+4 -3
View File
@@ -3,8 +3,9 @@
# Get all the variables.
PROCESSES=$1
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.
exit_code=0
@@ -12,7 +13,7 @@ exit_code=0
# Run commands using xargs in parallel and capture their PIDs
pids=()
for ((i=0; i<PROCESSES; i++)); do
scripts/itest_part.sh $i $TRANCHES $TEST_FLAGS $ITEST_FLAGS &
scripts/itest_part.sh $i $TRANCHES $@ &
pids+=($!)
done