aboutsummaryrefslogtreecommitdiff
path: root/test/functional/zmq_test.py
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-05-01 15:12:49 -0400
committerJohn Newbery <john@johnnewbery.com>2017-05-01 15:12:49 -0400
commitb8251f63373ed58a05d104f9c1637d2c07b3569e (patch)
tree018248012b0999c9e86c23c6b34cad3c2da94531 /test/functional/zmq_test.py
parente2b99b13131b5d0fd6fae6d55892c2ebb327d438 (diff)
[tests] allow zmq test to be run in out-of-tree builds
Diffstat (limited to 'test/functional/zmq_test.py')
-rwxr-xr-xtest/functional/zmq_test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/zmq_test.py b/test/functional/zmq_test.py
index 891b609ffa..70a8e0180e 100755
--- a/test/functional/zmq_test.py
+++ b/test/functional/zmq_test.py
@@ -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!")