aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_logging.py
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2018-02-07 10:38:25 -0500
committerMarcoFalke <falke.marco@gmail.com>2018-03-18 13:32:50 -0400
commit58122736b53390a2013630e95ff760800af160e7 (patch)
tree386b714cff790ba9fae18135bb91c13455802e09 /test/functional/feature_logging.py
parent0ec08a672dce3f619e46d0c7455e95a13dc5c4e2 (diff)
downloadbitcoin-58122736b53390a2013630e95ff760800af160e7.tar.xz
[Tests] Require exact match in assert_start_raises_init_eror()
Diffstat (limited to 'test/functional/feature_logging.py')
-rwxr-xr-xtest/functional/feature_logging.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/functional/feature_logging.py b/test/functional/feature_logging.py
index 65a03e50ad..a4ebc7cca3 100755
--- a/test/functional/feature_logging.py
+++ b/test/functional/feature_logging.py
@@ -30,8 +30,8 @@ class LoggingTest(BitcoinTestFramework):
invdir = os.path.join(self.nodes[0].datadir, "regtest", "foo")
invalidname = os.path.join("foo", "foo.log")
self.stop_node(0)
- self.nodes[0].assert_start_raises_init_error(["-debuglogfile=%s" % (invalidname)],
- "Error: Could not open debug log file")
+ exp_stderr = "Error: Could not open debug log file \S+$"
+ self.nodes[0].assert_start_raises_init_error(["-debuglogfile=%s" % (invalidname)], exp_stderr)
assert not os.path.isfile(os.path.join(invdir, "foo.log"))
# check that invalid log (relative) works after path exists
@@ -44,8 +44,7 @@ class LoggingTest(BitcoinTestFramework):
self.stop_node(0)
invdir = os.path.join(self.options.tmpdir, "foo")
invalidname = os.path.join(invdir, "foo.log")
- self.nodes[0].assert_start_raises_init_error(["-debuglogfile=%s" % invalidname],
- "Error: Could not open debug log file")
+ self.nodes[0].assert_start_raises_init_error(["-debuglogfile=%s" % invalidname], exp_stderr)
assert not os.path.isfile(os.path.join(invdir, "foo.log"))
# check that invalid log (absolute) works after path exists