X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fframework.py;h=019f366dabe1192331c29ab3b99d5a854647a902;hb=refs%2Fchanges%2F06%2F16106%2F3;hp=4c536e062b09448a5b28bc4b6654494e6023ec0a;hpb=5642109506e304c9817434b6f82616dcad83698f;p=vpp.git diff --git a/test/framework.py b/test/framework.py index 4c536e062b0..019f366dabe 100644 --- a/test/framework.py +++ b/test/framework.py @@ -983,14 +983,6 @@ def get_testcase_doc_name(test): return getdoc(test.__class__).splitlines()[0] -def get_test_description(descriptions, test): - short_description = test.shortDescription() - if descriptions and short_description: - return short_description - else: - return str(test) - - class TestCaseInfo(object): def __init__(self, logger, tempdir, vpp_pid, vpp_bin_path): self.logger = logger @@ -1175,7 +1167,12 @@ class VppTestResult(unittest.TestResult): :returns: test description """ - return get_test_description(self.descriptions, test) + # TODO: if none print warning not raise exception + short_description = test.shortDescription() + if self.descriptions and short_description: + return short_description + else: + return str(test) def startTest(self, test): """