Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
stats: coverity errors leaking fd
[vpp.git]
/
test
/
test_util.py
diff --git
a/test/test_util.py
b/test/test_util.py
index
8501881
..
421afce
100755
(executable)
--- a/
test/test_util.py
+++ b/
test/test_util.py
@@
-10,10
+10,19
@@
class TestUtil (unittest.TestCase):
""" Test framework utility tests """
@classmethod
""" Test framework utility tests """
@classmethod
- def
force
_solo(cls):
+ def
is_tagged_run
_solo(cls):
""" if the test case class is timing-sensitive - return true """
return False
""" 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'
def test_mac_to_binary(self):
""" MAC to binary and back """
mac = 'aa:bb:cc:dd:ee:ff'