Modified: trunk/Tools/ChangeLog (138964 => 138965)
--- trunk/Tools/ChangeLog 2013-01-07 19:03:44 UTC (rev 138964)
+++ trunk/Tools/ChangeLog 2013-01-07 19:04:56 UTC (rev 138965)
@@ -1,5 +1,14 @@
2013-01-07 Ryosuke Niwa <rn...@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 <rn...@webkit.org>
+
Extract a class to represent a test result to simplify PerfTest.parse_output and PageLoadPerfTest._run_with_driver
https://bugs.webkit.org/show_bug.cgi?id=106172
Modified: trunk/Tools/Scripts/webkitpy/performance_tests/perftestsrunner_integrationtest.py (138964 => 138965)
--- trunk/Tools/Scripts/webkitpy/performance_tests/perftestsrunner_integrationtest.py 2013-01-07 19:03:44 UTC (rev 138964)
+++ trunk/Tools/Scripts/webkitpy/performance_tests/perftestsrunner_integrationtest.py 2013-01-07 19:04:56 UTC (rev 138965)
@@ -303,6 +303,14 @@
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)