From d7307978806391b9b1f342a128f9167674dd2453 Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Fri, 12 Aug 2022 13:10:14 +0800 Subject: [PATCH] itest: remove unused flag `goroutineDump` --- lntemp/node/config.go | 5 ----- scripts/itest_part.sh | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lntemp/node/config.go b/lntemp/node/config.go index e398cad48..4e632ec7e 100644 --- a/lntemp/node/config.go +++ b/lntemp/node/config.go @@ -45,11 +45,6 @@ var ( // logOutput is true. logSubDir = flag.String("logdir", ".", "default dir to write logs to") - // goroutineDump is a flag that can be set to dump the active - // goroutines of test nodes on failure. - goroutineDump = flag.Bool("goroutinedump", false, - "write goroutine dump from node n to file pprof-n.log") - // btcdExecutable is the full path to the btcd binary. btcdExecutable = flag.String( "btcdexec", "", "full path to btcd binary", diff --git a/scripts/itest_part.sh b/scripts/itest_part.sh index 37a8a4659..312e13a01 100755 --- a/scripts/itest_part.sh +++ b/scripts/itest_part.sh @@ -16,9 +16,9 @@ shift EXEC="$WORKDIR"/itest.test"$EXEC_SUFFIX" LND_EXEC="$WORKDIR"/lnd-itest"$EXEC_SUFFIX" BTCD_EXEC="$WORKDIR"/btcd-itest"$EXEC_SUFFIX" -echo $EXEC -test.v "$@" -logoutput -goroutinedump -logdir=.logs-tranche$TRANCHE -lndexec=$LND_EXEC -btcdexec=$BTCD_EXEC -splittranches=$NUM_TRANCHES -runtranche=$TRANCHE +echo $EXEC -test.v "$@" -logoutput -logdir=.logs-tranche$TRANCHE -lndexec=$LND_EXEC -btcdexec=$BTCD_EXEC -splittranches=$NUM_TRANCHES -runtranche=$TRANCHE # Exit code 255 causes the parallel jobs to abort, so if one part fails the # other is aborted too. cd "$WORKDIR" || exit 255 -$EXEC -test.v "$@" -logoutput -goroutinedump -logdir=.logs-tranche$TRANCHE -lndexec=$LND_EXEC -btcdexec=$BTCD_EXEC -splittranches=$NUM_TRANCHES -runtranche=$TRANCHE || exit 255 +$EXEC -test.v "$@" -logoutput -logdir=.logs-tranche$TRANCHE -lndexec=$LND_EXEC -btcdexec=$BTCD_EXEC -splittranches=$NUM_TRANCHES -runtranche=$TRANCHE || exit 255