From b8251f63373ed58a05d104f9c1637d2c07b3569e Mon Sep 17 00:00:00 2001 From: John Newbery Date: Mon, 1 May 2017 15:12:49 -0400 Subject: [tests] allow zmq test to be run in out-of-tree builds --- test/functional/zmq_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/functional/zmq_test.py') 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!") -- cgit v1.2.3