MCPcopy Create free account
hub / github.com/FDio/vpp / before_cli

Method before_cli

test/hook.py:313–322  ·  view source on GitHub ↗

Wait for ENTER before executing CLI

(self, cli)

Source from the content-addressed store, hash-verified

311 self.skip_num = num
312
313 def before_cli(self, cli):
314 """Wait for ENTER before executing CLI"""
315 if self.skip():
316 print("Skip pause before executing CLI: %s" % cli)
317 else:
318 print(double_line_delim)
319 print("Test paused before executing CLI: %s" % cli)
320 print(single_line_delim)
321 self.user_input()
322 super(StepHook, self).before_cli(cli)
323
324 def before_api(self, api_name, api_args):
325 """Wait for ENTER before executing API"""

Callers

nothing calls this directly

Calls 4

skipMethod · 0.95
user_inputMethod · 0.95
printFunction · 0.85
before_cliMethod · 0.45

Tested by

no test coverage detected