summaryrefslogtreecommitdiffstats
path: root/test/test_bihash.py
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-03-10 16:59:39 -0400
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2020-03-10 23:40:35 +0000
commitd498c9eb2b70b744b6231d5db714422f8745caaf (patch)
tree8146c867b7b37613987dd0fde6888ef7fe234d67 /test/test_bihash.py
parent9f4db3cddf9931ef97ef0ea8f9dac1b63199407c (diff)
tests: add running_gcov_tests to framework.py
Mark a few code coverage tests appropriately: @unittest.skipUnless(running_gcov_tests, "part of code coverage tests") def test_my_coverage_unittest(self): <etc> Almost exactly like "make EXTENDED_TESTS=yes test". Type: feature Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: Ic6d0a097a608ba93442b3d88252f66f8e6805b97
Diffstat (limited to 'test/test_bihash.py')
-rw-r--r--test/test_bihash.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_bihash.py b/test/test_bihash.py
index 04b1b4f635a..ac8bab37a7d 100644
--- a/test/test_bihash.py
+++ b/test/test_bihash.py
@@ -2,7 +2,7 @@
import unittest
-from framework import VppTestCase, VppTestRunner
+from framework import VppTestCase, VppTestRunner, running_gcov_tests
from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath
@@ -50,6 +50,7 @@ class TestBihash(VppTestCase):
self.logger.critical(error)
self.assertNotIn('failed', error)
+ @unittest.skipUnless(running_gcov_tests, "part of code coverage tests")
def test_bihash_coverage(self):
""" Improve Code Coverage """
@@ -60,6 +61,5 @@ class TestBihash(VppTestCase):
self.logger.critical(error)
self.assertNotIn('failed', error)
-
if __name__ == '__main__':
unittest.main(testRunner=VppTestRunner)