vlib: add 'wait' cli command
When running exec scripts, there can be a need to wait between statements. Type: feature Change-Id: I2a45b390697e09fc222358c9354f28e3368a06ba Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
This commit is contained in:

committed by
Andrew Yourtchenko

parent
1a7ed5e3e6
commit
bfd7d294d0
@ -267,6 +267,7 @@ class VppTestCase(unittest.TestCase):
|
||||
|
||||
extra_vpp_punt_config = []
|
||||
extra_vpp_plugin_config = []
|
||||
vapi_response_timeout = 5
|
||||
|
||||
@property
|
||||
def packet_infos(self):
|
||||
@ -550,11 +551,9 @@ class VppTestCase(unittest.TestCase):
|
||||
cls.pump_thread.daemon = True
|
||||
cls.pump_thread.start()
|
||||
if cls.debug_gdb or cls.debug_gdbserver:
|
||||
read_timeout = 0
|
||||
else:
|
||||
read_timeout = 5
|
||||
cls.vapi_response_timeout = 0
|
||||
cls.vapi = VppPapiProvider(cls.shm_prefix, cls.shm_prefix, cls,
|
||||
read_timeout)
|
||||
cls.vapi_response_timeout)
|
||||
if cls.step:
|
||||
hook = hookmodule.StepHook(cls)
|
||||
else:
|
||||
|
Reference in New Issue
Block a user