Skip to content

Commit 8d5f8d8

Browse files
committed
itest: ensure LND gets correct CLI options when itest are parallel
1 parent dcd921a commit 8d5f8d8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/itest_parallel.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
# Get all the variables.
44
PROCESSES=$1
55
TRANCHES=$2
6-
TEST_FLAGS=$3
7-
ITEST_FLAGS=$4
6+
7+
# Here we also shift 2 times and get the rest of our flags to pass on in $@.
8+
shift 2
89

910
# Create a variable to hold the final exit code.
1011
exit_code=0
1112

1213
# Run commands using xargs in parallel and capture their PIDs
1314
pids=()
1415
for ((i=0; i<PROCESSES; i++)); do
15-
scripts/itest_part.sh $i $TRANCHES $TEST_FLAGS $ITEST_FLAGS &
16+
scripts/itest_part.sh $i $TRANCHES $@ &
1617
pids+=($!)
1718
done
1819

0 commit comments

Comments
 (0)