Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1830)

Unified Diff: gm/rebaseline_server/compare_to_expectations_test.py

Issue 379563005: rebaseline_server: cache results in long-running ImageDiffDB instance (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Ravi comment Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/rebaseline_server/compare_to_expectations.py ('k') | gm/rebaseline_server/imagediffdb.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/rebaseline_server/compare_to_expectations_test.py
diff --git a/gm/rebaseline_server/compare_to_expectations_test.py b/gm/rebaseline_server/compare_to_expectations_test.py
index 76e4a7bb3281777e77a90d161a5fdea7c9cb62ad..d2b2dd60ee9c5dc09912a68a968c412d724e88be 100755
--- a/gm/rebaseline_server/compare_to_expectations_test.py
+++ b/gm/rebaseline_server/compare_to_expectations_test.py
@@ -19,11 +19,11 @@ within self._output_dir_expected, which wouldn't be good...
"""
import os
-import sys
# Imports from within Skia
import base_unittest
import compare_to_expectations
+import imagediffdb
import results
import gm_json # must import results first, so that gm_json will be in sys.path
@@ -32,10 +32,11 @@ class CompareToExpectationsTest(base_unittest.TestCase):
def test_gm(self):
"""Process results of a GM run with the ExpectationComparisons object."""
+ image_diff_db = imagediffdb.ImageDiffDB(storage_root=self._temp_dir)
results_obj = compare_to_expectations.ExpectationComparisons(
+ image_diff_db=image_diff_db,
actuals_root=os.path.join(self._input_dir, 'gm-actuals'),
expected_root=os.path.join(self._input_dir, 'gm-expectations'),
- generated_images_root=self._temp_dir,
diff_base_url='/static/generated-images')
results_obj.get_timestamp = mock_get_timestamp
gm_json.WriteToFile(
« no previous file with comments | « gm/rebaseline_server/compare_to_expectations.py ('k') | gm/rebaseline_server/imagediffdb.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698