diff mbox series

[ovs-dev,v2,3/4] system-traffic: Skip 5 tunnel tests on certain kernel versions

Message ID 1534339490-20505-3-git-send-email-pkusunyifeng@gmail.com
State Accepted
Headers show
Series [ovs-dev,v2,1/4] ip6_gre: Fix a bug that clears address bits | expand

Commit Message

Yifeng Sun Aug. 15, 2018, 1:24 p.m. UTC
Skip gre, erspan and ip6erspan related tests on kernel version from 3.10.x
to 4.15.x because compatable gre is used and these tests will always fail.

Signed-off-by: Yifeng Sun <pkusunyifeng@gmail.com>
---
 tests/system-traffic.at | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Gregory Rose Aug. 16, 2018, 4:20 p.m. UTC | #1
On 8/15/2018 6:24 AM, Yifeng Sun wrote:
> Skip gre, erspan and ip6erspan related tests on kernel version from 3.10.x
> to 4.15.x because compatable gre is used and these tests will always fail.
>
> Signed-off-by: Yifeng Sun <pkusunyifeng@gmail.com>
> ---
>   tests/system-traffic.at | 5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/tests/system-traffic.at b/tests/system-traffic.at
> index cbd9542..7d236b8 100644
> --- a/tests/system-traffic.at
> +++ b/tests/system-traffic.at
> @@ -300,6 +300,7 @@ OVS_TRAFFIC_VSWITCHD_STOP
>   AT_CLEANUP
>   
>   AT_SETUP([datapath - ping over gre tunnel])
> +OVS_CHECK_KERNEL_EXCL(3, 10, 4, 15)
>   OVS_CHECK_GRE()
>   
>   OVS_TRAFFIC_VSWITCHD_START()
> @@ -340,6 +341,7 @@ OVS_TRAFFIC_VSWITCHD_STOP
>   AT_CLEANUP
>   
>   AT_SETUP([datapath - ping over erspan v1 tunnel])
> +OVS_CHECK_KERNEL_EXCL(3, 10, 4, 15)
>   OVS_CHECK_GRE()
>   OVS_CHECK_ERSPAN()
>   
> @@ -375,6 +377,7 @@ OVS_TRAFFIC_VSWITCHD_STOP
>   AT_CLEANUP
>   
>   AT_SETUP([datapath - ping over erspan v2 tunnel])
> +OVS_CHECK_KERNEL_EXCL(3, 10, 4, 15)
>   OVS_CHECK_GRE()
>   OVS_CHECK_ERSPAN()
>   
> @@ -410,6 +413,7 @@ OVS_TRAFFIC_VSWITCHD_STOP
>   AT_CLEANUP
>   
>   AT_SETUP([datapath - ping over ip6erspan v1 tunnel])
> +OVS_CHECK_KERNEL_EXCL(3, 10, 4, 15)
>   OVS_CHECK_GRE()
>   OVS_CHECK_ERSPAN()
>   
> @@ -448,6 +452,7 @@ OVS_TRAFFIC_VSWITCHD_STOP
>   AT_CLEANUP
>   
>   AT_SETUP([datapath - ping over ip6erspan v2 tunnel])
> +OVS_CHECK_KERNEL_EXCL(3, 10, 4, 15)
>   OVS_CHECK_GRE()
>   OVS_CHECK_ERSPAN()
>   

Works as advertised on systems with 4.9.x and RHEL 3.10.693 kernels.

Reviewed-by: Greg Rose <gvrose8192@gmail.com>
Tested-by: Greg Rose <gvrose8192@gmail.com>
diff mbox series

Patch

diff --git a/tests/system-traffic.at b/tests/system-traffic.at
index cbd9542..7d236b8 100644
--- a/tests/system-traffic.at
+++ b/tests/system-traffic.at
@@ -300,6 +300,7 @@  OVS_TRAFFIC_VSWITCHD_STOP
 AT_CLEANUP
 
 AT_SETUP([datapath - ping over gre tunnel])
+OVS_CHECK_KERNEL_EXCL(3, 10, 4, 15)
 OVS_CHECK_GRE()
 
 OVS_TRAFFIC_VSWITCHD_START()
@@ -340,6 +341,7 @@  OVS_TRAFFIC_VSWITCHD_STOP
 AT_CLEANUP
 
 AT_SETUP([datapath - ping over erspan v1 tunnel])
+OVS_CHECK_KERNEL_EXCL(3, 10, 4, 15)
 OVS_CHECK_GRE()
 OVS_CHECK_ERSPAN()
 
@@ -375,6 +377,7 @@  OVS_TRAFFIC_VSWITCHD_STOP
 AT_CLEANUP
 
 AT_SETUP([datapath - ping over erspan v2 tunnel])
+OVS_CHECK_KERNEL_EXCL(3, 10, 4, 15)
 OVS_CHECK_GRE()
 OVS_CHECK_ERSPAN()
 
@@ -410,6 +413,7 @@  OVS_TRAFFIC_VSWITCHD_STOP
 AT_CLEANUP
 
 AT_SETUP([datapath - ping over ip6erspan v1 tunnel])
+OVS_CHECK_KERNEL_EXCL(3, 10, 4, 15)
 OVS_CHECK_GRE()
 OVS_CHECK_ERSPAN()
 
@@ -448,6 +452,7 @@  OVS_TRAFFIC_VSWITCHD_STOP
 AT_CLEANUP
 
 AT_SETUP([datapath - ping over ip6erspan v2 tunnel])
+OVS_CHECK_KERNEL_EXCL(3, 10, 4, 15)
 OVS_CHECK_GRE()
 OVS_CHECK_ERSPAN()