X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_util.py;h=421afce4d5d4a20d7b0feb623be861da0d5001a7;hb=5599fc2dae024bcf150fa4b3b4584e19419f8079;hp=51cc739ca8d06c1d75c559105b5815adfef1bb5c;hpb=ead1e536d66d83b546528c32e2112085a97c8e13;p=vpp.git diff --git a/test/test_util.py b/test/test_util.py index 51cc739ca8d..421afce4d5d 100755 --- a/test/test_util.py +++ b/test/test_util.py @@ -7,8 +7,24 @@ from vpp_papi import mac_pton, mac_ntop class TestUtil (unittest.TestCase): - """ MAC to binary and back """ + """ Test framework utility tests """ + + @classmethod + def is_tagged_run_solo(cls): + """ if the test case class is timing-sensitive - return true """ + return False + + @classmethod + def has_tag(cls, tag): + """ if the test case has a given tag - return true """ + try: + return tag in cls.test_tags + except AttributeError: + pass + return False + def test_mac_to_binary(self): + """ MAC to binary and back """ mac = 'aa:bb:cc:dd:ee:ff' b = mac_pton(mac) mac2 = mac_ntop(b)