summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Ganne <gabriel.ganne@enea.com>2018-02-08 11:22:33 +0100
committerDave Wallace <dwallacelf@gmail.com>2018-02-08 22:21:36 +0000
commit97cabc96916997395d49d4ad9fb4037700e90e6b (patch)
treec736270c61df20c3c3f13828386c1a7320aa75b4
parent508cabcec8f462aafcce6d101451806a251bd601 (diff)
Geneve - reduce unit-test run time
Reduce the number of tunnels created/destroyed to reduce the load of the tests without changing the code covered. These are functional tests, not performance tests. This reduced the test time down to 10s from 4 minutes on my machine. Change-Id: Ifcaddc0b0628a21392c5cb247196f56bc28a53a2 Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
-rw-r--r--test/test_geneve.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_geneve.py b/test/test_geneve.py
index c32302c7384..a670bc40864 100644
--- a/test/test_geneve.py
+++ b/test/test_geneve.py
@@ -98,7 +98,7 @@ class TestGeneve(BridgeDomain, VppTestCase):
add or del tunnels sharing the same mcast dst
to test geneve ref_count mechanism
"""
- n_shared_dst_tunnels = 2000
+ n_shared_dst_tunnels = 10
vni_start = 10000
vni_end = vni_start + n_shared_dst_tunnels
for vni in range(vni_start, vni_end):
@@ -124,7 +124,7 @@ class TestGeneve(BridgeDomain, VppTestCase):
"""
add or del tunnels to test geneve stability
"""
- n_distinct_dst_tunnels = 200
+ n_distinct_dst_tunnels = 10
ip_range_start = 10
ip_range_end = ip_range_start + n_distinct_dst_tunnels
for dest_ip4n in ip4n_range(cls.mcast_ip4n, ip_range_start,