aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-05-21 10:52:46 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-05-21 10:53:09 +0200
commitfa9f711c3746ca3962f15224285a453744cd45b3 (patch)
tree8faf1943a028f28dd20199570c32090db9e77eff /test/functional
parenteb4df9a628bdcdd1333c7fa4fb23c73df9642902 (diff)
downloadbitcoin-fa9f711c3746ca3962f15224285a453744cd45b3.tar.xz
Fix crash when parsing command line with -noincludeconf=0
Diffstat (limited to 'test/functional')
-rwxr-xr-xtest/functional/feature_includeconf.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/functional/feature_includeconf.py b/test/functional/feature_includeconf.py
index f22b7f266a..061d90c446 100755
--- a/test/functional/feature_includeconf.py
+++ b/test/functional/feature_includeconf.py
@@ -42,7 +42,14 @@ class IncludeConfTest(BitcoinTestFramework):
self.log.info("-includeconf cannot be used as command-line arg")
self.stop_node(0)
- self.nodes[0].assert_start_raises_init_error(extra_args=["-includeconf=relative2.conf"], expected_msg="Error: Error parsing command line arguments: -includeconf cannot be used from commandline; -includeconf=relative2.conf")
+ self.nodes[0].assert_start_raises_init_error(
+ extra_args=['-noincludeconf=0'],
+ expected_msg='Error: Error parsing command line arguments: -includeconf cannot be used from commandline; -includeconf=true',
+ )
+ self.nodes[0].assert_start_raises_init_error(
+ extra_args=['-includeconf=relative2.conf'],
+ expected_msg='Error: Error parsing command line arguments: -includeconf cannot be used from commandline; -includeconf="relative2.conf"',
+ )
self.log.info("-includeconf cannot be used recursively. subversion should end with 'main; relative)/'")
with open(os.path.join(self.options.tmpdir, "node0", "relative.conf"), "a", encoding="utf8") as f: