Build fix attempt after r138810.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Jan 2013 19:04:56 +0000 (19:04 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Jan 2013 19:04:56 +0000 (19:04 +0000)
Apparently python 2.6 is really bad at floating point computation.

* Scripts/webkitpy/performance_tests/perftestsrunner_integrationtest.py:
(MainTest.test_run_memory_test):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@138965 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/Scripts/webkitpy/performance_tests/perftestsrunner_integrationtest.py

index 90d0a63ed0576dff1627163fb57478d6637b5940..62d03e1146d49af9f4ab3a25a7b1be238aa5cca2 100644 (file)
@@ -1,3 +1,12 @@
+2013-01-07  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Build fix attempt after r138810.
+
+        Apparently python 2.6 is really bad at floating point computation.
+
+        * Scripts/webkitpy/performance_tests/perftestsrunner_integrationtest.py:
+        (MainTest.test_run_memory_test):
+
 2013-01-07  Ryosuke Niwa  <rniwa@webkit.org>
 
         Extract a class to represent a test result to simplify PerfTest.parse_output and PageLoadPerfTest._run_with_driver
index eff7f84faa227f813635ef96c38cf548ac44f33d..8232a860a002f55e925e2c8ab1f91d3bc8b247c8 100644 (file)
@@ -303,6 +303,14 @@ class MainTest(unittest.TestCase):
         self.assertEqual(self._normalize_output(log), MemoryTestData.output + '\nMOCK: user.open_url: file://...\n')
         results = self._load_output_json(runner)[0]['results']
         values = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
+
+        # Stdev for test doesn't match on some bots
+        self.assertEqual(sorted(results['Parser/memory-test'].keys()), sorted(MemoryTestData.results.keys()))
+        for key in MemoryTestData.results:
+            if key == 'stdev':
+                self.assertAlmostEqual(results['Parser/memory-test'][key], MemoryTestData.results[key], places=4)
+            else:
+                self.assertEqual(results['Parser/memory-test'][key], MemoryTestData.results[key])
         self.assertEqual(results['Parser/memory-test'], MemoryTestData.results)
         self.assertEqual(results['Parser/memory-test:JSHeap'], MemoryTestData.js_heap_results)
         self.assertEqual(results['Parser/memory-test:Malloc'], MemoryTestData.malloc_results)