Page MenuHomePhabricator

[test] combine_logs: append node stderr and stdout if it exists
ClosedPublic

Authored by PiRK on Oct 7 2020, 09:06.

Details

Reviewers
Fabien
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Commits
rABCa96f22d8d82e: [test] combine_logs: append node stderr and stdout if it exists
Summary

Description of issue that motivated this PR:

Currently the stdout of bitcoinds in functional tests is written to a file in self.datadir of the node. It is only read/examined after the node is shut down. To aid debugging it should (also?) be passed to the logger for visibility and timestamps.

Backport of Core PR15841
Depends on D7795

Test Plan

Intentionaly modify a functional test to make it fail, then check that node stdout is now part of the combined logs.

ninja
../test/functional/feature_bip68_sequence.py --configfile=./test/config.ini
../test/functional/combine_logs.py -c

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a reviewer: Restricted Owners Package.Oct 7 2020, 09:06
PiRK requested review of this revision.Oct 7 2020, 09:06

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Oct 7 2020, 15:55