Index: tools/perf/measurements/measurement_unittest.py |
diff --git a/tools/perf/measurements/measurement_unittest.py b/tools/perf/measurements/measurement_unittest.py |
index 8386be3ab71caaa4f0295c64f1129c365960a551..338ece76704acbbfc7b5c26a8c2264a03ec5ffbb 100644 |
--- a/tools/perf/measurements/measurement_unittest.py |
+++ b/tools/perf/measurements/measurement_unittest.py |
@@ -22,7 +22,7 @@ class MeasurementUnitTest(unittest.TestCase): |
# |
# Ideally this test would be comprehensive, but the above serves as a |
# kind of smoke test. |
- measurements_dir = os.path.dirname(__file__) |
+ measurements_dir = os.path.dirname(os.path.realpath(__file__)) |
top_level_dir = os.path.dirname(measurements_dir) |
benchmarks_dir = os.path.join(top_level_dir, 'benchmarks') |
@@ -33,7 +33,7 @@ class MeasurementUnitTest(unittest.TestCase): |
benchmarks_dir, top_level_dir, test.Test, pattern='*.py').values() |
for benchmark in all_benchmarks: |
- if benchmark.test not in all_measurements: |
+ if benchmark.PageTestClass() not in all_measurements: |
# If the benchmark is not in measurements, then it is not composable. |
# Ideally we'd like to test these as well, but the non-composable |
# benchmarks are usually long-running benchmarks. |