Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/test_framework.py
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | def setup(self): | ||||
check_json_precision() | check_json_precision() | ||||
self.options.cachedir = os.path.abspath(self.options.cachedir) | self.options.cachedir = os.path.abspath(self.options.cachedir) | ||||
config = configparser.ConfigParser() | config = configparser.ConfigParser() | ||||
config.read_file(open(self.options.configfile, encoding='utf-8')) | config.read_file(open(self.options.configfile, encoding='utf-8')) | ||||
self.config = config | self.config = config | ||||
self.options.bitcoind = os.getenv( | fname_bitcoind = os.path.join( | ||||
"BITCOIND", default=config["environment"]["BUILDDIR"] + '/src/bitcoind' + config["environment"]["EXEEXT"]) | config["environment"]["BUILDDIR"], | ||||
"src", | |||||
"bitcoind" + config["environment"]["EXEEXT"] | |||||
) | |||||
fname_bitcoincli = os.path.join( | |||||
config["environment"]["BUILDDIR"], | |||||
"src", | |||||
"bitcoin-cli" + config["environment"]["EXEEXT"] | |||||
) | |||||
self.options.bitcoind = os.getenv("BITCOIND", default=fname_bitcoind) | |||||
self.options.bitcoincli = os.getenv( | self.options.bitcoincli = os.getenv( | ||||
"BITCOINCLI", default=config["environment"]["BUILDDIR"] + '/src/bitcoin-cli' + config["environment"]["EXEEXT"]) | "BITCOINCLI", default=fname_bitcoincli) | ||||
self.options.emulator = config["environment"]["EMULATOR"] or None | self.options.emulator = config["environment"]["EMULATOR"] or None | ||||
os.environ['PATH'] = config['environment']['BUILDDIR'] + os.pathsep + \ | os.environ['PATH'] = config['environment']['BUILDDIR'] + os.pathsep + \ | ||||
config['environment']['BUILDDIR'] + os.path.sep + "qt" + os.pathsep + \ | config['environment']['BUILDDIR'] + os.path.sep + "qt" + os.pathsep + \ | ||||
os.environ['PATH'] | os.environ['PATH'] | ||||
# Set up temp directory and start logging | # Set up temp directory and start logging | ||||
if self.options.tmpdir: | if self.options.tmpdir: | ||||
▲ Show 20 Lines • Show All 486 Lines • Show Last 20 Lines |