aboutsummaryrefslogtreecommitdiffstats
path: root/test/framework.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2017-09-29 12:36:37 +0200
committerKlement Sekera <ksekera@cisco.com>2017-09-29 12:59:19 +0200
commitd3e671e0dbb879d90f00bdee608ee0bb5f6357ae (patch)
treeeec07bfa10a2789a469c8d629104173bef4a39bf /test/framework.py
parent0ff5c563d5048991dbd02a3892dccde8305a7e30 (diff)
make test: fix/disable VAPI tests on centos
Workaround old `check' library on centos. Disable building/running of C++ VAPI test as centos's gcc can't compile our C++ code (vapi.hpp) due to bug. Change-Id: If9da9c7f1bc076f7cdfb9bd3016dfe60a08afa36 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/framework.py')
-rw-r--r--test/framework.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/framework.py b/test/framework.py
index 008bda3b7ce..b658b382370 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -92,6 +92,15 @@ def running_extended_tests():
return False
+def running_on_centos():
+ try:
+ os_id = os.getenv("OS_ID")
+ return True if "centos" in os_id.lower() else False
+ except:
+ return False
+ return False
+
+
class KeepAliveReporter(object):
"""
Singleton object which reports test start to parent process