mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
itest: ensure LND gets correct CLI options when itest are parallel
This commit is contained in:
parent
dcd921ad69
commit
8d5f8d822d
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user