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 <pb...@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
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to