Skip to content

Commit db01839

Browse files
test: Add missing call to skip_if_no_cli()
1 parent 1e8f88e commit db01839

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,10 @@ def main(self):
161161
success = TestStatus.FAILED
162162

163163
try:
164-
if self.options.usecli and not self.supports_cli:
165-
raise SkipTest("--usecli specified but test does not support using CLI")
164+
if self.options.usecli:
165+
if not self.supports_cli:
166+
raise SkipTest("--usecli specified but test does not support using CLI")
167+
self.skip_if_no_cli()
166168
self.skip_test_if_missing_module()
167169
self.setup_chain()
168170
self.setup_network()

0 commit comments

Comments
 (0)