Unreviewed build fix after r185014. Some tests only have subtests and not metrics.
[WebKit-https.git] / Tools / Scripts / webkitpy / benchmark_runner / benchmark_results_unittest.py
index 0411be97e7dd5abc1d71c6295adbb569c7719571..f66e981ca1b8e8a7678cb2126ddae4a28a314423 100644 (file)
@@ -195,7 +195,7 @@ SomeTest:Time:Arithmetic: 3.0ms stdev=33.3%
                     'SubTest2': {'metrics': {'Time': {None: {'current': [5, 6]}}}, 'tests': {}}}}})
 
     def test_lint_results(self):
-        with self.assertRaisesRegexp(TypeError, r'"SomeTest" does not contain metrics'):
+        with self.assertRaisesRegexp(TypeError, r'"SomeTest" does not contain metrics or tests'):
             BenchmarkResults._lint_results({'SomeTest': {}})
 
         with self.assertRaisesRegexp(TypeError, r'The metrics in "SomeTest" is not a dictionary'):