Index: gm/rebaseline_server/server.py |
diff --git a/gm/rebaseline_server/server.py b/gm/rebaseline_server/server.py |
index d88d3992d780a5a570f811433a9a169468a487fd..35af68819d9da3def357c1ce54c70397f6002f24 100755 |
--- a/gm/rebaseline_server/server.py |
+++ b/gm/rebaseline_server/server.py |
@@ -48,6 +48,7 @@ import gm_json |
# Note: we import results under a different name, to avoid confusion with the |
# Server.results() property. See discussion at |
# https://codereview.chromium.org/195943004/diff/1/gm/rebaseline_server/server.py#newcode44 |
+import compare_to_expectations |
import imagepairset |
import results as results_mod |
@@ -70,7 +71,7 @@ KEY__EDITS__MODIFICATIONS = 'modifications' |
KEY__EDITS__OLD_RESULTS_HASH = 'oldResultsHash' |
KEY__EDITS__OLD_RESULTS_TYPE = 'oldResultsType' |
-DEFAULT_ACTUALS_DIR = results_mod.DEFAULT_ACTUALS_DIR |
+DEFAULT_ACTUALS_DIR = compare_to_expectations.DEFAULT_ACTUALS_DIR |
DEFAULT_ACTUALS_REPO_REVISION = 'HEAD' |
DEFAULT_ACTUALS_REPO_URL = 'http://skia-autogen.googlecode.com/svn/gm-actual' |
DEFAULT_PORT = 8888 |
@@ -262,10 +263,10 @@ class Server(object): |
if self._reload_seconds: |
logging.info( |
'Updating expected GM results in %s by syncing Skia repo ...' % |
- results_mod.DEFAULT_EXPECTATIONS_DIR) |
+ compare_to_expectations.DEFAULT_EXPECTATIONS_DIR) |
_run_command(['gclient', 'sync'], TRUNK_DIRECTORY) |
- new_results = results_mod.Results( |
+ new_results = compare_to_expectations.Results( |
actuals_root=self._actuals_dir, |
generated_images_root=GENERATED_IMAGES_DIR, |
diff_base_url=os.path.relpath( |
@@ -403,7 +404,7 @@ class HTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): |
# client and server apply |
# modifications to the same base) |
KEY__EDITS__MODIFICATIONS: [ |
- # as needed by results_mod.edit_expectations() |
+ # as needed by compare_to_expectations.edit_expectations() |
... |
], |
} |