aboutsummaryrefslogtreecommitdiff
path: root/src/test/bitcoin-util-test.py
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2016-11-02 22:56:32 +0000
committerJohn Newbery <john@johnnewbery.com>2016-11-03 14:50:20 +0000
commit2b175d4b018be432e333bf8a343b85c5f284264f (patch)
treea1a021d94cb8efebc6b6d4435467f8d6656d0ee1 /src/test/bitcoin-util-test.py
parent6a1343f73bd0f6744cfcfda1e3e1c8998f67e2d7 (diff)
downloadbitcoin-2b175d4b018be432e333bf8a343b85c5f284264f.tar.xz
Clean up bctest.py and bitcoin-util-test.py
- remove newlines - change tabs for spaces, to align with convention in other py files - add comments - add 'Bitcoin Core Developers' copyright notice
Diffstat (limited to 'src/test/bitcoin-util-test.py')
-rwxr-xr-xsrc/test/bitcoin-util-test.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/bitcoin-util-test.py b/src/test/bitcoin-util-test.py
index 9afe91aca0..eeb05c0b88 100755
--- a/src/test/bitcoin-util-test.py
+++ b/src/test/bitcoin-util-test.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python
# Copyright 2014 BitPay, Inc.
+# Copyright 2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from __future__ import division,print_function,unicode_literals
@@ -16,11 +17,13 @@ Runs automatically during `make check`.
Can also be run manually from the src directory by specifiying the source directory:
-test/bitcoin-util-test.py --src=[srcdir]
+test/bitcoin-util-test.py --srcdir='srcdir' [--verbose]
"""
-
if __name__ == '__main__':
+ # Try to get the source directory from the environment variables. This will
+ # be set for `make check` automated runs. If environment variable is not set,
+ # then get the source directory from command line args.
try:
srcdir = os.environ["srcdir"]
verbose = False