]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2225_statistics] should not do this test unless there is no timer parameter(time_to_...
authorNaoki Kambe <kambe@jprs.co.jp>
Mon, 26 Nov 2012 13:06:30 +0000 (22:06 +0900)
committerNaoki Kambe <kambe@jprs.co.jp>
Mon, 26 Nov 2012 13:06:30 +0000 (22:06 +0900)
src/lib/python/isc/statistics/tests/counter_test.py

index 097ded69358ffe85efa36487cfda1d1e0f25becc..1143a365f21ff2258b808d051beec4669094ce3a 100644 (file)
@@ -264,6 +264,13 @@ class BaseTestCounter():
         self.check_dump_statistics()
 
     def test_perzone_timers(self):
+        # should not do this test unless there is no timer
+        # parameter(time_to_xxx) in statistics spec
+        has_timer = False
+        for counter_name in self._zones_item_list:
+            if counter_name.find('time_to_') == 0:
+                has_timer = True
+        if not has_timer: return
         # for timer counters
         for counter_name in self._zones_item_list:
             if counter_name.find('time_to_') == -1: