ovn-controller-vtep.at: Skip test when using Windows setup.
authorAlex Wang <alexw@nicira.com>
Mon, 17 Aug 2015 22:04:50 +0000 (15:04 -0700)
committerAlex Wang <alexw@nicira.com>
Mon, 17 Aug 2015 22:24:03 +0000 (15:24 -0700)
The 'ovs-vtep' simulator is not ported to Windows.  So, for now,
just skip all tests in ovn-controller-vtep.at when running in
Windows.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Gurucharan Shetty <gshetty@nicira.com>
tests/ovn-controller-vtep.at

index 8338385..d7fe234 100644 (file)
@@ -2,7 +2,8 @@ AT_BANNER([ovn_controller_vtep])
 
 # OVN_CONTROLLER_VTEP_START
 #
-# Starts the test with a setup with vtep device.
+# Starts the test with a setup with vtep device.  Each test case must first
+# call this macro.
 #
 # Uses vtep-ovs to simulate the vtep switch 'br-vtep' with two physical ports
 # 'p0', 'p1'.
@@ -11,7 +12,11 @@ AT_BANNER([ovn_controller_vtep])
 #
 #
 m4_define([OVN_CONTROLLER_VTEP_START],
-  [OVS_RUNDIR=`pwd`; export OVS_RUNDIR
+  [
+   # this will cause skip when 'make check' using Windows setup.
+   AT_SKIP_IF([test $HAVE_PYTHON = no])
+
+   OVS_RUNDIR=`pwd`; export OVS_RUNDIR
    OVS_LOGDIR=`pwd`; export OVS_LOGDIR
    OVS_DBDIR=`pwd`; export OVS_DBDIR
    OVS_SYSCONFDIR=`pwd`; export OVS_SYSCONFDIR