diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-05-21 10:52:46 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-05-21 10:53:09 +0200 |
commit | fa9f711c3746ca3962f15224285a453744cd45b3 (patch) | |
tree | 8faf1943a028f28dd20199570c32090db9e77eff /test/functional/feature_includeconf.py | |
parent | eb4df9a628bdcdd1333c7fa4fb23c73df9642902 (diff) |
Fix crash when parsing command line with -noincludeconf=0
Diffstat (limited to 'test/functional/feature_includeconf.py')
-rwxr-xr-x | test/functional/feature_includeconf.py | 9 |
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: |