From d498c9eb2b70b744b6231d5db714422f8745caaf Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Tue, 10 Mar 2020 16:59:39 -0400 Subject: 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): Almost exactly like "make EXTENDED_TESTS=yes test". Type: feature Signed-off-by: Dave Barach Change-Id: Ic6d0a097a608ba93442b3d88252f66f8e6805b97 --- test/framework.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/framework.py') diff --git a/test/framework.py b/test/framework.py index 872dd45d86b..46f7542ea54 100644 --- a/test/framework.py +++ b/test/framework.py @@ -217,6 +217,13 @@ def _running_extended_tests(): running_extended_tests = _running_extended_tests() +def _running_gcov_tests(): + return BoolEnvironmentVariable("GCOV_TESTS") + + +running_gcov_tests = _running_gcov_tests() + + def _running_on_centos(): os_id = os.getenv("OS_ID", "") return True if "centos" in os_id.lower() else False -- cgit 1.2.3-korg