From: Naoki Kambe Date: Mon, 26 Nov 2012 13:06:30 +0000 (+0900) Subject: [2225_statistics] should not do this test unless there is no timer parameter(time_to_... X-Git-Tag: bind10-1.1.0beta1-release~72^2~40^2~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d834a1a1b95f67b2ea2467b75e00fdfe9ac0c763;p=thirdparty%2Fkea.git [2225_statistics] should not do this test unless there is no timer parameter(time_to_xxx) in statistics spec --- diff --git a/src/lib/python/isc/statistics/tests/counter_test.py b/src/lib/python/isc/statistics/tests/counter_test.py index 097ded6935..1143a365f2 100644 --- a/src/lib/python/isc/statistics/tests/counter_test.py +++ b/src/lib/python/isc/statistics/tests/counter_test.py @@ -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: