Fix instance method call in test/framework.py
Instance method breaking encapsulation by calling a global fn. Change-Id: Ifde2a207951143764aed75f1b191aed0bac83704 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
This commit is contained in:
committed by
Ole Trøan
parent
5642109506
commit
c32023b9fd
+2
-6
@@ -15,7 +15,7 @@ from multiprocessing import Process, Pipe, cpu_count
|
||||
from multiprocessing.queues import Queue
|
||||
from multiprocessing.managers import BaseManager
|
||||
from framework import VppTestRunner, running_extended_tests, VppTestCase, \
|
||||
get_testcase_doc_name, get_test_description, PASS, FAIL, ERROR, SKIP, \
|
||||
get_testcase_doc_name, PASS, FAIL, ERROR, SKIP, \
|
||||
TEST_RUN
|
||||
from debug import spawn_gdb
|
||||
from log import get_parallel_logger, double_line_delim, RED, YELLOW, GREEN, \
|
||||
@@ -88,7 +88,7 @@ class TestResult(dict):
|
||||
|
||||
def get_testcase_names(self, test_id):
|
||||
if re.match(r'.+\..+\..+', test_id):
|
||||
test_name = self._get_test_description(test_id)
|
||||
test_name = test_id.getDescription()
|
||||
testcase_name = self._get_testcase_doc_name(test_id)
|
||||
else:
|
||||
# could be tearDownClass (test_ipsec_esp.TestIpsecEsp1)
|
||||
@@ -108,10 +108,6 @@ class TestResult(dict):
|
||||
|
||||
return testcase_name, test_name
|
||||
|
||||
def _get_test_description(self, test_id):
|
||||
return get_test_description(descriptions,
|
||||
self.testcases_by_id[test_id])
|
||||
|
||||
def _get_testcase_doc_name(self, test_id):
|
||||
return get_testcase_doc_name(self.testcases_by_id[test_id])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user