Bug fix in odl-sfc 09/24509/1
authorManuel Buil <manuel.buil@ericsson.com>
Fri, 11 Nov 2016 12:17:13 +0000 (13:17 +0100)
committerGeorge Paraskevopoulos <geopar@intracom-telecom.com>
Thu, 17 Nov 2016 14:09:48 +0000 (16:09 +0200)
The function that measures the time it takes to update OVS had a bug

Change-Id: I1e480759c0c20197dd412f3400ea50921764d991
Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
testcases/features/sfc/sfc.py

index 9de5928..0ba292d 100755 (executable)
@@ -417,7 +417,7 @@ def capture_time_log(compute_clients):
         if not i:
             first_RSP = rsps[0]
             i = i + 1
-        if(first_RSP != rsps[0]):
+        if(first_RSP != rsps[0] and len(rsps) > 1):
             if (rsps[0] == rsps[1]):
                 stop_time = time.time()
                 logger.info("classification rules updated")