X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_cli.py;h=a1ffbac81d81bace6c86ab97fab5df4cc667670e;hb=e2ccdf0316243a1486109743e3de532cae5f3254;hp=7fa734b2231005e40471449e62c582fe18425631;hpb=5d440d9cb6a51c6658f4be855008b91f05d294c6;p=vpp.git diff --git a/test/test_cli.py b/test/test_cli.py index 7fa734b2231..a1ffbac81d8 100644 --- a/test/test_cli.py +++ b/test/test_cli.py @@ -17,7 +17,7 @@ class TestCLI(VppTestCase): @classmethod def setUpClass(cls): # using the framework default - # cls.vapi_response_timeout = 5 + cls.vapi_response_timeout = 5 super(TestCLI, cls).setUpClass() @classmethod @@ -44,6 +44,11 @@ class TestCLI(VppTestCase): vpp_transport_shmem.VppTransportShmemIOError) as ctx: rv = self.vapi.papi.cli_inband(cmd='wait 10') + def test_long_cli_delay_override(self): + """ Test per-command _timeout option.""" # noqa + rv = self.vapi.papi.cli_inband(cmd='wait 10', _timeout=15) + self.assertEqual(rv.retval, 0) + class TestCLIExtendedVapiTimeout(VppTestCase): maxDiff = None