Print result of RPC call in test only when PYTHON_DEBUG is set
This commit is contained in:
parent
8993edfb77
commit
d4ab94a6d9
|
@ -389,10 +389,12 @@ def wait_and_assert_operationid_status(node, myopid, in_status='success', in_err
|
||||||
elif status == "success":
|
elif status == "success":
|
||||||
txid = results[0]['result']['txid']
|
txid = results[0]['result']['txid']
|
||||||
break
|
break
|
||||||
print('...returned status: {}'.format(status))
|
|
||||||
assert_equal(in_status, status)
|
assert_equal(in_status, status)
|
||||||
if errormsg is not None:
|
if errormsg is not None:
|
||||||
assert(in_errormsg is not None)
|
assert(in_errormsg is not None)
|
||||||
assert_equal(in_errormsg in errormsg, True)
|
assert_equal(in_errormsg in errormsg, True)
|
||||||
|
if os.getenv("PYTHON_DEBUG", ""):
|
||||||
|
print('...returned status: {}'.format(status))
|
||||||
|
if errormsg is not None:
|
||||||
print('...returned error: {}'.format(errormsg))
|
print('...returned error: {}'.format(errormsg))
|
||||||
return txid
|
return txid
|
||||||
|
|
Loading…
Reference in New Issue