mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-03 01:09:14 +01:00
Merge #10307: [tests] allow zmq test to be run in out-of-tree builds
b8251f6 [tests] allow zmq test to be run in out-of-tree builds (John Newbery)
Tree-SHA512: 6946d23bc8a0b57e841a6811989182732d0534989e0e3b94421387f7971379b25a25d238cad22272e04076293275f6e980c8a713fce87ba48c1c4463d9243051
This commit is contained in:
@@ -29,7 +29,9 @@ class ZMQTest (BitcoinTestFramework):
|
||||
|
||||
# Check that bitcoin has been built with ZMQ enabled
|
||||
config = configparser.ConfigParser()
|
||||
config.read_file(open(os.path.dirname(__file__) + "/config.ini"))
|
||||
if not self.options.configfile:
|
||||
self.options.configfile = os.path.dirname(__file__) + "/config.ini"
|
||||
config.read_file(open(self.options.configfile))
|
||||
|
||||
if not config["components"].getboolean("ENABLE_ZMQ"):
|
||||
self.log.warning("bitcoind has not been built with zmq enabled. Skipping zmq tests!")
|
||||
|
||||
Reference in New Issue
Block a user