diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-10-08 21:22:19 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-10-08 21:23:42 +0200 |
commit | e66cc1d58e16bf1650dd6479fed64ecaca8c6098 (patch) | |
tree | 4839fcf0584f5549e5cd4144c0e894ee0b26fdb0 /src/test/bctest.py | |
parent | f137753a2dcd8229f89d1d1ac28039364e5850b4 (diff) | |
parent | 621441a7a72ec0b17594a24a2c5fedcac0c605f6 (diff) | |
download | bitcoin-e66cc1d58e16bf1650dd6479fed64ecaca8c6098.tar.xz |
Merge #8881: Add some verbose logging to bitcoin-util-test.py
621441a add verbose mode to bitcoin-util-test.py (jnewbery)
Diffstat (limited to 'src/test/bctest.py')
-rw-r--r-- | src/test/bctest.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/bctest.py b/src/test/bctest.py index 39a27fcd0c..d801415c70 100644 --- a/src/test/bctest.py +++ b/src/test/bctest.py @@ -45,13 +45,17 @@ def bctest(testDir, testObj, exeext): print("Return code mismatch for " + outputFn) sys.exit(1) -def bctester(testDir, input_basename, buildenv): +def bctester(testDir, input_basename, buildenv, verbose = False): input_filename = testDir + "/" + input_basename raw_data = open(input_filename).read() input_data = json.loads(raw_data) for testObj in input_data: + if verbose and "description" in testObj: + print ("Testing: " + testObj["description"]) bctest(testDir, testObj, buildenv.exeext) + if verbose and "description" in testObj: + print ("PASS") sys.exit(0) |