Skip to content

Commit

Permalink
Merge pull request #9021 from aakselrod/run-nativesql-itests
Browse files Browse the repository at this point in the history
itest: ensure LND gets correct CLI options when itest are parallel
  • Loading branch information
guggero authored Aug 25, 2024
2 parents dcd921a + 302c690 commit 8939a21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/release-notes/release-notes-0.18.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
## Functional Enhancements
## RPC Additions
Expand Down
7 changes: 4 additions & 3 deletions scripts/itest_parallel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
# 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

# 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

Expand Down

0 comments on commit 8939a21

Please sign in to comment.