Page MenuHomePhabricator

Fix test logging of stderr and stdout
Closed, ResolvedPublic

Description

See here: https://build.bitcoinabc.org/viewLog.html?buildId=3218&buildTypeId=BitcoinABC_BitcoinAbcStaging&tab=buildLog&_focus=6506

The following information is not properly represented in the tests's log file.

[05:27:38][Step 1/1] stderr:
[05:27:38][Step 1/1] bitcoind: ../../src/amount.cpp:29: Amount CFeeRate::GetFee(size_t) const: Assertion `nBytes_ <= uint64_t(std::numeric_limits<int64_t>::max())' failed.
[05:27:38][Step 1/1] Traceback (most recent call last):
[05:27:38][Step 1/1]   File "/opt/teamcity-agent/work/c4a5708f2bae7929/build/../test/functional/bip68-sequence.py", line 446, in <module>
[05:27:38][Step 1/1]     BIP68Test().main()
[05:27:38][Step 1/1]   File "/opt/teamcity-agent/work/c4a5708f2bae7929/test/functional/test_framework/test_framework.py", line 149, in main
[05:27:38][Step 1/1]     self.stop_nodes()
[05:27:38][Step 1/1]   File "/opt/teamcity-agent/work/c4a5708f2bae7929/test/functional/test_framework/test_framework.py", line 288, in stop_nodes
[05:27:38][Step 1/1]     node.wait_until_stopped()
[05:27:38][Step 1/1]   File "/opt/teamcity-agent/work/c4a5708f2bae7929/test/functional/test_framework/test_node.py", line 149, in wait_until_stopped
[05:27:38][Step 1/1]     wait_until(self.is_node_stopped, timeout=timeout)
[05:27:38][Step 1/1]   File "/opt/teamcity-agent/work/c4a5708f2bae7929/test/functional/test_framework/util.py", line 245, in wait_until
[05:27:38][Step 1/1]     if predicate():
[05:27:38][Step 1/1]   File "/opt/teamcity-agent/work/c4a5708f2bae7929/test/functional/test_framework/test_node.py", line 140, in is_node_stopped
[05:27:38][Step 1/1]     assert_equal(return_code, 0)
[05:27:38][Step 1/1]   File "/opt/teamcity-agent/work/c4a5708f2bae7929/test/functional/test_framework/util.py", line 43, in assert_equal
[05:27:38][Step 1/1]     for arg in (thing1, thing2) + args))
[05:27:38][Step 1/1] AssertionError: not(-6 == 0)