Skip to content

Commit c6e65a1

Browse files
committed
Merge bitcoin/bitcoin#27137: test: Raise PRNG seed log to INFO
4d84eae Raise PRNG seed log to INFO. (roconnor-blockstream) Pull request description: Some build infrastructure, such as Nix, will delete failed builds by default, keeping only the log (stdout/stderr) of the failed build. For flaky tests, it would be very helpful to have the PRNG seed in the default log in order to redo the failed test. By simply raising the PRNG seed logging to INFO, we can, by default, record the seed in the log of every build. ACKs for top commit: MarcoFalke: lgtm ACK 4d84eae theStack: ACK 4d84eae Tree-SHA512: 3ccb4a4e7639a3babc3b2a6456a6d0bffc090da34e4545b317f7bfbed4e9950d1b38ea5b2a90c37ccb49b3454bdeff03a6aaf86770b9c4dd14b26320aba50b94
2 parents 63893d5 + 4d84eae commit c6e65a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,10 @@ def setup(self):
279279
if seed is None:
280280
seed = random.randrange(sys.maxsize)
281281
else:
282-
self.log.debug("User supplied random seed {}".format(seed))
282+
self.log.info("User supplied random seed {}".format(seed))
283283

284284
random.seed(seed)
285-
self.log.debug("PRNG seed is: {}".format(seed))
285+
self.log.info("PRNG seed is: {}".format(seed))
286286

287287
self.log.debug('Setting up network thread')
288288
self.network_thread = NetworkThread()

0 commit comments

Comments
 (0)