[ovs-dev] [PATCH] tests: Skip vlog close and set if no python is installed

Paul Boca pboca at cloudbasesolutions.com
Fri Jun 3 13:06:51 UTC 2016


AT_CAPTURE_FILE([log.old]) and AT_CAPTURE_FILE([log]) will fail in case no python
is installed on the system

Signed-off-by: Paul-Daniel Boca <pboca at cloudbasesolutions.com>
---
 tests/vlog.at | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/vlog.at b/tests/vlog.at
index b793611..c66c84a 100644
--- a/tests/vlog.at
+++ b/tests/vlog.at
@@ -273,6 +273,8 @@ VLOG_CANT_REOPEN_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
 VLOG_CANT_REOPEN_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])
 
 AT_SETUP([vlog - vlog/close - C])
+AT_SKIP_IF([test $HAVE_PYTHON = no])
+AT_SKIP_IF([test $HAVE_PYTHON3 = no])
 on_exit 'kill `cat test-unixctl.pid`'
 
 AT_CAPTURE_FILE([log])
@@ -351,6 +353,8 @@ VLOG_CLOSE_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
 VLOG_CLOSE_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])
 
 AT_SETUP([vlog - vlog/set and vlog/list - C])
+AT_SKIP_IF([test $HAVE_PYTHON = no])
+AT_SKIP_IF([test $HAVE_PYTHON3 = no])
 on_exit 'kill `cat test-unixctl.pid`'
 
 AT_CAPTURE_FILE([log])
-- 
2.7.2.windows.1



More information about the dev mailing list