From 4918563a4c05f219a6c1b192f025471ef38a1526 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Thu, 23 Mar 2017 18:06:17 +0100 Subject: Limit topologies to the ones working Due to the classifier rules only deployed where VNFs are, some use cases will fail because the client traffic never gets classified Change-Id: I77b10231b7a34497ed8ecd42d72e08e0b4481bfa Signed-off-by: Manuel Buil --- sfc/lib/topology_shuffler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sfc/lib/topology_shuffler.py b/sfc/lib/topology_shuffler.py index 84392ed3..7f2ad3b1 100644 --- a/sfc/lib/topology_shuffler.py +++ b/sfc/lib/topology_shuffler.py @@ -69,8 +69,10 @@ def get_seed(): NOTE: There's sure a smarter way to do this Probably with the Jenkins job id ''' - cutoff = len(TOPOLOGIES) - 1 - # We only add the topologies which are working + # We only try tests which work + test_working = 2 + cutoff = test_working - 1 + # cutoff = len(TOPOLOGIES) - 1 seed = datetime.datetime.today().weekday() if seed > cutoff: seed = random.randrange(cutoff) -- cgit 1.2.3-korg