summaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authornednguyen <nednguyen@google.com>2015-10-08 05:30:48 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-08 12:31:32 +0000
commit9ce216277ac7ae4d0eb1182535dae1f6963fd0ab (patch)
tree2d1b3aaf120de0ab78c57dda4baf4c81fc13db29 /tools/perf
parentf94ad2460d7a0979e41460b6d93d4434c0f16db7 (diff)
downloadchromium_src-9ce216277ac7ae4d0eb1182535dae1f6963fd0ab.zip
chromium_src-9ce216277ac7ae4d0eb1182535dae1f6963fd0ab.tar.gz
chromium_src-9ce216277ac7ae4d0eb1182535dae1f6963fd0ab.tar.bz2
Isolate telemetry_perf_unittests
BUG=507796 Review URL: https://codereview.chromium.org/1379433006 Cr-Commit-Position: refs/heads/master@{#353042}
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/fetch_benchmark_deps_unittest.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/perf/fetch_benchmark_deps_unittest.py b/tools/perf/fetch_benchmark_deps_unittest.py
index 68194fd..8361e9f 100644
--- a/tools/perf/fetch_benchmark_deps_unittest.py
+++ b/tools/perf/fetch_benchmark_deps_unittest.py
@@ -30,7 +30,7 @@ class FetchBenchmarkDepsUnittest(unittest.TestCase):
sys.argv = ['./fetch_benchmark_deps', '']
def _RunFetchBenchmarkDepsTest(self, benchmark_name,
- expected_fetched_file_paths = None):
+ expected_fetched_file_paths=None):
"""Simulates './fetch_benchmark_deps [benchmark_name]'
It checks if the paths returned are expected and have corresponding sha1
@@ -65,5 +65,8 @@ class FetchBenchmarkDepsUnittest(unittest.TestCase):
self._RunFetchBenchmarkDepsTest('media.tough_video_cases')
def testFetchOctane(self):
- expected = 'src/tools/perf/page_sets/data/octane_001.wpr'
+ octane_wpr_path = os.path.join(
+ os.path.dirname(__file__), 'page_sets', 'data', 'octane_001.wpr')
+ expected = os.path.relpath(octane_wpr_path,
+ fetch_benchmark_deps.GetChromiumDir())
self._RunFetchBenchmarkDepsTest('octane', NormPaths(expected))