diff mbox

[ovs-dev,09/12] python tests: Skip ovn-controller-vtep tests on Windows

Message ID 508339EC0242094682895ED3EC4EBA312E571426@CBSEX1.cloudbase.local
State Superseded
Headers show

Commit Message

Paul Boca Aug. 30, 2016, 9:17 a.m. UTC
Hi Guru,

The problem with ovn tests is that the ‘—detach’ is used for clients, which on Windows is
ignored.
For example here: https://github.com/openvswitch/ovs/blob/master/ovn/utilities/ovn-trace.c#L85
on Windows will always call https://github.com/openvswitch/ovs/blob/master/ovn/utilities/ovn-trace.c#L92-L93
instead of https://github.com/openvswitch/ovs/blob/master/ovn/utilities/ovn-trace.c#L87-L88. So this will raise
some errors in ovn tests on Windows.
I don’t know if ignoring the ‘—detach’ switch is intended or is a porting error.

Paul

From: Guru Shetty [mailto:guru@ovn.org]

Sent: Friday, August 26, 2016 9:07 PM
To: Paul Boca
Cc: dev@openvswitch.org
Subject: Re: [ovs-dev] [PATCH 09/12] python tests: Skip ovn-controller-vtep tests on Windows



On 26 August 2016 at 07:40, Paul Boca <pboca@cloudbasesolutions.com<mailto:pboca@cloudbasesolutions.com>> wrote:
The tests are not intended to run on Windows.

Can you explain why? What part of the test gives a problem in Windows? Is it that the ovs-vtep.py has not been ported to Windows?

Until now they were skipped based on $HAVE_PYTHON only.

Signed-off-by: Paul-Daniel Boca <pboca@cloudbasesolutions.com<mailto:pboca@cloudbasesolutions.com>>

---
 tests/ovn-controller-vtep.at<http://ovn-controller-vtep.at> | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.7.2.windows.1
_______________________________________________
dev mailing list
dev@openvswitch.org<mailto:dev@openvswitch.org>
http://openvswitch.org/mailman/listinfo/dev

Comments

Gurucharan Shetty Aug. 30, 2016, 2:46 p.m. UTC | #1
On 30 August 2016 at 02:17, Paul Boca <pboca@cloudbasesolutions.com> wrote:

> Hi Guru,
>
>
>
> The problem with ovn tests is that the ‘—detach’ is used for clients,
> which on Windows is
>
> ignored.
>
> For example here: https://github.com/openvswitch/ovs/blob/master/
> ovn/utilities/ovn-trace.c#L85
>
> on Windows will always call https://github.com/
> openvswitch/ovs/blob/master/ovn/utilities/ovn-trace.c#L92-L93
>
> instead of https://github.com/openvswitch/ovs/blob/master/
> ovn/utilities/ovn-trace.c#L87-L88. So this will raise
>
> some errors in ovn tests on Windows.
>
> I don’t know if ignoring the ‘—detach’ switch is intended or is a porting
> error.
>

It looks like a porting error.


>
>
> Paul
>
>
>
> *From:* Guru Shetty [mailto:guru@ovn.org]
> *Sent:* Friday, August 26, 2016 9:07 PM
> *To:* Paul Boca
> *Cc:* dev@openvswitch.org
> *Subject:* Re: [ovs-dev] [PATCH 09/12] python tests: Skip
> ovn-controller-vtep tests on Windows
>
>
>
>
>
>
>
> On 26 August 2016 at 07:40, Paul Boca <pboca@cloudbasesolutions.com>
> wrote:
>
> The tests are not intended to run on Windows.
>
>
>
> Can you explain why? What part of the test gives a problem in Windows? Is
> it that the ovs-vtep.py has not been ported to Windows?
>
>
>
> Until now they were skipped based on $HAVE_PYTHON only.
>
> Signed-off-by: Paul-Daniel Boca <pboca@cloudbasesolutions.com>
> ---
>  tests/ovn-controller-vtep.at | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/ovn-controller-vtep.at b/tests/ovn-controller-vtep.at
> index 654c212..3f024cb 100644
> --- a/tests/ovn-controller-vtep.at
> +++ b/tests/ovn-controller-vtep.at
> @@ -15,7 +15,7 @@ m4_define([OVN_CONTROLLER_VTEP_START],
>    [
>     AT_KEYWORDS([ovn])
>     # this will cause skip when 'make check' using Windows setup.
> -   AT_SKIP_IF([test $HAVE_PYTHON = no])
> +   AT_SKIP_IF([test "$IS_WIN32" = "yes"])
>
>     dnl Create databases (ovn-nb, ovn-sb, vtep).
>     AT_CHECK([ovsdb-tool create vswitchd.db $abs_top_srcdir/vswitchd/
> vswitch.ovsschema])
> --
> 2.7.2.windows.1
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>
>
>
diff mbox

Patch

diff --git a/tests/ovn-controller-vtep.at<http://ovn-controller-vtep.at> b/tests/ovn-controller-vtep.at<http://ovn-controller-vtep.at>
index 654c212..3f024cb 100644
--- a/tests/ovn-controller-vtep.at<http://ovn-controller-vtep.at>
+++ b/tests/ovn-controller-vtep.at<http://ovn-controller-vtep.at>
@@ -15,7 +15,7 @@  m4_define([OVN_CONTROLLER_VTEP_START],
   [
    AT_KEYWORDS([ovn])
    # this will cause skip when 'make check' using Windows setup.
-   AT_SKIP_IF([test $HAVE_PYTHON = no])
+   AT_SKIP_IF([test "$IS_WIN32" = "yes"])

    dnl Create databases (ovn-nb, ovn-sb, vtep).
    AT_CHECK([ovsdb-tool create vswitchd.db $abs_top_srcdir/vswitchd/vswitch.ovsschema])