X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fframework.py;h=9ad964098c24d53fb70221e13bfc4177f51ac69f;hb=a7f8b228ff505acc052a77101b12e714ead26536;hp=789ec1be9b96d923bc413b7b42fe874da4eb678b;hpb=732021070fa0c731896ab3e29f802d3834c72ab7;p=vpp.git diff --git a/test/framework.py b/test/framework.py index 789ec1be9b9..9ad964098c2 100644 --- a/test/framework.py +++ b/test/framework.py @@ -390,8 +390,8 @@ class VppTestCase(unittest.TestCase): else: hook = PollHook(cls) cls.vapi.register_hook(hook) - cls.statistics = VPPStats(socketname=cls.tempdir+'/stats.sock') cls.sleep(0.1, "after vpp startup, before initial poll") + cls.statistics = VPPStats(socketname=cls.tempdir+'/stats.sock') try: hook.poll_vpp() except VppDiedError: @@ -961,7 +961,7 @@ class VppTestResult(unittest.TestResult): self.verbosity = verbosity self.result_string = None self.printer = TestCasePrinter() - self.passed = 0 + self.passed = [] def addSuccess(self, test): """ @@ -975,7 +975,7 @@ class VppTestResult(unittest.TestResult): % (test.__class__.__name__, test._testMethodName, test._testMethodDoc)) - self.passed += 1 + self.passed.append(test.id()) unittest.TestResult.addSuccess(self, test) self.result_string = colorize("OK", GREEN)