Skip to content

Commit 5ea4508

Browse files
committed
Autofind rpc tests --srcdir
1 parent 77b637f commit 5ea4508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qa/rpc-tests/test_framework/test_framework.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def main(self):
102102
help="Leave bitcoinds and test.* datadir on exit or error")
103103
parser.add_option("--noshutdown", dest="noshutdown", default=False, action="store_true",
104104
help="Don't stop bitcoinds after the test execution")
105-
parser.add_option("--srcdir", dest="srcdir", default="../../src",
105+
parser.add_option("--srcdir", dest="srcdir", default=os.path.normpath(os.path.dirname(os.path.realpath(__file__))+"/../../../src"),
106106
help="Source directory containing bitcoind/bitcoin-cli (default: %default)")
107107
parser.add_option("--tmpdir", dest="tmpdir", default=tempfile.mkdtemp(prefix="test"),
108108
help="Root directory for datadirs")

0 commit comments

Comments
 (0)