File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,17 @@ def run_test(self):
36
36
output = self .nodes [0 ].process .stdout .read ()
37
37
assert b'version' in output
38
38
self .log .info ("Version text received: {} (...)" .format (output [0 :60 ]))
39
+
40
+ # Test that arguments not in the help results in an error
41
+ self .log .info ("Start bitcoind with -fakearg to make sure it does not start" )
42
+ self .nodes [0 ].start (extra_args = ['-fakearg' ], stderr = subprocess .PIPE , stdout = subprocess .PIPE )
43
+ # Node should exit immediately and output an error to stderr
44
+ ret_code = self .nodes [0 ].process .wait (timeout = 1 )
45
+ assert_equal (ret_code , 1 )
46
+ output = self .nodes [0 ].process .stderr .read ()
47
+ assert b'Error parsing command line arguments' in output
48
+ self .log .info ("Error message received: {} (...)" .format (output [0 :60 ]))
49
+
39
50
# Clean up TestNode state
40
51
self .nodes [0 ].running = False
41
52
self .nodes [0 ].process = None
You can’t perform that action at this time.
0 commit comments