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

Side by Side Diff: gm/rebaseline_server/server.py

Issue 385783002: roll "common" DEPS, and replace tools/pyutils with it (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rearrange DEPS a bit 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 unified diff | Download patch
« no previous file with comments | « gm/rebaseline_server/results.py ('k') | tools/pyutils/__init__.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 """ 3 """
4 Copyright 2013 Google Inc. 4 Copyright 2013 Google Inc.
5 5
6 Use of this source code is governed by a BSD-style license that can be 6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file. 7 found in the LICENSE file.
8 8
9 HTTP server for our HTML rebaseline viewer. 9 HTTP server for our HTML rebaseline viewer.
10 """ 10 """
11 11
12 # System-level imports 12 # System-level imports
13 import argparse 13 import argparse
14 import BaseHTTPServer 14 import BaseHTTPServer
15 import json 15 import json
16 import logging 16 import logging
17 import os 17 import os
18 import posixpath 18 import posixpath
19 import re 19 import re
20 import shutil 20 import shutil
21 import socket 21 import socket
22 import subprocess 22 import subprocess
23 import thread 23 import thread
24 import threading 24 import threading
25 import time 25 import time
26 import urlparse 26 import urlparse
27 27
28 # Must fix up PYTHONPATH before importing from within Skia 28 # Must fix up PYTHONPATH before importing from within Skia
29 # pylint: disable=W0611 29 import fix_pythonpath # pylint: disable=W0611
30 import fix_pythonpath
31 # pylint: enable=W0611
32 30
33 # Imports from within Skia 31 # Imports from within Skia
34 from pyutils import gs_utils 32 from py.utils import gs_utils
35 import gm_json 33 import gm_json
36 34
37 # Imports from local dir 35 # Imports from local dir
38 # 36 #
39 # pylint: disable=C0301 37 # pylint: disable=C0301
40 # Note: we import results under a different name, to avoid confusion with the 38 # Note: we import results under a different name, to avoid confusion with the
41 # Server.results() property. See discussion at 39 # Server.results() property. See discussion at
42 # https://codereview.chromium.org/195943004/diff/1/gm/rebaseline_server/server.p y#newcode44 40 # https://codereview.chromium.org/195943004/diff/1/gm/rebaseline_server/server.p y#newcode44
43 # pylint: enable=C0301 41 # pylint: enable=C0301
44 import compare_configs 42 import compare_configs
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 json_filename=args.json_filename, 698 json_filename=args.json_filename,
701 gm_summaries_bucket=args.gm_summaries_bucket, 699 gm_summaries_bucket=args.gm_summaries_bucket,
702 port=args.port, export=args.export, editable=args.editable, 700 port=args.port, export=args.export, editable=args.editable,
703 reload_seconds=args.reload, config_pairs=config_pairs, 701 reload_seconds=args.reload, config_pairs=config_pairs,
704 builder_regex_list=args.builders) 702 builder_regex_list=args.builders)
705 _SERVER.run() 703 _SERVER.run()
706 704
707 705
708 if __name__ == '__main__': 706 if __name__ == '__main__':
709 main() 707 main()
OLDNEW
« no previous file with comments | « gm/rebaseline_server/results.py ('k') | tools/pyutils/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698