Browse Source

[2157] statistics counter check in lettuce corrected

it didn't work if only 'counter' parameter is given
Yoshitaka Aharen 12 years ago
parent
commit
f91f95678f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      tests/lettuce/features/terrain/bind10_control.py

+ 1 - 2
tests/lettuce/features/terrain/bind10_control.py

@@ -422,8 +422,7 @@ def check_statistics(step, counter, category, zone, gtltbt, number, upper):
         zone_str = " for zone %s" % zone
         zone_str = " for zone %s" % zone
     for level in depth:
     for level in depth:
         output = find_value(output, level)
         output = find_value(output, level)
-    else:
-        found = find_value(output, counter)
+    found = find_value(output, counter)
     assert found is not None, \
     assert found is not None, \
         'Not found statistics counter %s%s%s' % \
         'Not found statistics counter %s%s%s' % \
             (counter, category_str, zone_str)
             (counter, category_str, zone_str)