Merge pull request #9021 from aakselrod/run-nativesql-itests

itest: ensure LND gets correct CLI options when itest are parallel
This commit is contained in:
Oliver Gugger 2024-08-25 01:25:03 -06:00 committed by GitHub
commit 8939a217c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View file

@ -73,6 +73,9 @@ would create a blinded route with a minHTLC greater than the actual payment
amount. Moreover remove strict correlation between min_cltv_delta and the amount. Moreover remove strict correlation between min_cltv_delta and the
blinded path expiry. blinded path expiry.
* [Fixed](https://github.com/lightningnetwork/lnd/pull/9021) an issue with some
command-line arguments not being passed when running `make itest-parallel`.
# New Features # New Features
## Functional Enhancements ## Functional Enhancements
## RPC Additions ## RPC Additions

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