Skip to content

Commit fac1e1f

Browse files
author
MarcoFalke
committed
qa: Remove unused option --srcdir
1 parent 66cc47b commit fac1e1f

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ def main(self):
9898
help="Leave bitcoinds and test.* datadir on exit or error")
9999
parser.add_option("--noshutdown", dest="noshutdown", default=False, action="store_true",
100100
help="Don't stop bitcoinds after the test execution")
101-
parser.add_option("--srcdir", dest="srcdir", default=os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + "/../../../src"),
102-
help="Source directory containing bitcoind/bitcoin-cli (default: %default)")
103101
parser.add_option("--cachedir", dest="cachedir", default=os.path.abspath(os.path.dirname(os.path.realpath(__file__)) + "/../../cache"),
104102
help="Directory for caching pregenerated datadirs (default: %default)")
105103
parser.add_option("--tmpdir", dest="tmpdir", help="Root directory for datadirs")
@@ -123,10 +121,6 @@ def main(self):
123121

124122
PortSeed.n = self.options.port_seed
125123

126-
os.environ['PATH'] = self.options.srcdir + os.pathsep + \
127-
self.options.srcdir + os.path.sep + "qt" + os.pathsep + \
128-
os.environ['PATH']
129-
130124
check_json_precision()
131125

132126
self.options.cachedir = os.path.abspath(self.options.cachedir)
@@ -136,6 +130,10 @@ def main(self):
136130
self.options.bitcoind = os.getenv("BITCOIND", default=config["environment"]["BUILDDIR"] + '/src/bitcoind' + config["environment"]["EXEEXT"])
137131
self.options.bitcoincli = os.getenv("BITCOINCLI", default=config["environment"]["BUILDDIR"] + '/src/bitcoin-cli' + config["environment"]["EXEEXT"])
138132

133+
os.environ['PATH'] = config['environment']['BUILDDIR'] + os.pathsep + \
134+
config['environment']['BUILDDIR'] + os.path.sep + "qt" + os.pathsep + \
135+
os.environ['PATH']
136+
139137
# Set up temp directory and start logging
140138
if self.options.tmpdir:
141139
self.options.tmpdir = os.path.abspath(self.options.tmpdir)

test/functional/test_runner.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,7 @@ def run_tests(test_list, src_dir, build_dir, tmpdir, jobs=1, enable_coverage=Fal
313313

314314
tests_dir = src_dir + '/test/functional/'
315315

316-
flags = ["--srcdir={}/src".format(build_dir)] + args
317-
flags.append("--cachedir=%s" % cache_dir)
316+
flags = ['--cachedir={}'.format(cache_dir)] + args
318317

319318
if enable_coverage:
320319
coverage = RPCCoverage()

0 commit comments

Comments
 (0)