X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fframework.py;h=46f7542ea547ed596ca2d5e3ec0aacc6f94186e0;hb=f3468975d837fbe07c11c55d6ce7a6bf756ea2d8;hp=ba4576518b970b289ae5c864254c45a8154959a5;hpb=48bdbcd8f9d573138c43f994ddfff946d8a9d9b5;p=vpp.git diff --git a/test/framework.py b/test/framework.py index ba4576518b9..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 @@ -446,8 +453,7 @@ class VppTestCase(unittest.TestCase): try: cls.vpp = subprocess.Popen(cmdline, stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - bufsize=1) + stderr=subprocess.PIPE) except subprocess.CalledProcessError as e: cls.logger.critical("Subprocess returned with non-0 return code: (" "%s)", e.returncode)