X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_util.py;h=421afce4d5d4a20d7b0feb623be861da0d5001a7;hb=e46bd4cac4b80c553d39dbc2a06e5dd3f8eef671;hp=e7d53668e2b62d3dc8d251eb89af9f6644230510;hpb=dd3c5d250f3cf9712e37e47851ca07401e715f13;p=vpp.git diff --git a/test/test_util.py b/test/test_util.py index e7d53668e2b..421afce4d5d 100755 --- a/test/test_util.py +++ b/test/test_util.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Test framework utility functions tests""" import unittest @@ -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)