diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-05-06 12:40:12 +0200 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-05-09 15:05:58 +0200 |
commit | 5ea450834ed3abae9d85deae336ed65111e02906 (patch) | |
tree | 4d5ebac449b62ee24cd2d88edeabd35e7437cd7f | |
parent | 77b637f20e8cb91cf007bf416b603ca362385cdb (diff) |
Autofind rpc tests --srcdir
-rwxr-xr-x | qa/rpc-tests/test_framework/test_framework.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/rpc-tests/test_framework/test_framework.py b/qa/rpc-tests/test_framework/test_framework.py index ed12e1efb6..0b6d1b6abc 100755 --- a/qa/rpc-tests/test_framework/test_framework.py +++ b/qa/rpc-tests/test_framework/test_framework.py @@ -102,7 +102,7 @@ class BitcoinTestFramework(object): help="Leave bitcoinds and test.* datadir on exit or error") parser.add_option("--noshutdown", dest="noshutdown", default=False, action="store_true", help="Don't stop bitcoinds after the test execution") - parser.add_option("--srcdir", dest="srcdir", default="../../src", + parser.add_option("--srcdir", dest="srcdir", default=os.path.normpath(os.path.dirname(os.path.realpath(__file__))+"/../../../src"), help="Source directory containing bitcoind/bitcoin-cli (default: %default)") parser.add_option("--tmpdir", dest="tmpdir", default=tempfile.mkdtemp(prefix="test"), help="Root directory for datadirs") |