Browse Source

Downgrade some of the new checks to warnings

Hamilton Turner 10 years ago
parent
commit
5f73b59534
1 changed files with 6 additions and 2 deletions
  1. 6 2
      toolset/benchmark/test_types/query_type.py

+ 6 - 2
toolset/benchmark/test_types/query_type.py

@@ -30,11 +30,15 @@ class QueryTestType(DBTestType):
     body = self._curl(url + '0')
     body = self._curl(url + '0')
     problems += self._verifyQueryList(1, body, url + '0', 'warn')
     problems += self._verifyQueryList(1, body, url + '0', 'warn')
 
 
+    # Note: A number of tests fail here because they only parse for 
+    # a number and crash on 'foo'. If they fail and 500 (or empty response)
+    # then it's marked as a failure. If they return a list of size != 1 
+    # then it's only a warning
     body = self._curl(url + 'foo')
     body = self._curl(url + 'foo')
-    problems += self._verifyQueryList(1, body, url + 'foo')
+    problems += self._verifyQueryList(1, body, url + 'foo', 'warn')
 
 
     body = self._curl(url + '501')
     body = self._curl(url + '501')
-    problems += self._verifyQueryList(500, body, url + '501')
+    problems += self._verifyQueryList(500, body, url + '501', 'warn')
 
 
     if len(problems) == 0:
     if len(problems) == 0:
       return [('pass','',url + '2'),
       return [('pass','',url + '2'),