rebaseline.py: look in gm-expected directory to see whether it's using git or svn
(before this change, it checked in the current working dir instead) Review URL: https://codereview.chromium.org/18209010 git-svn-id: http://skia.googlecode.com/svn/trunk@9913 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
e33e137623
commit
ba7ef37a04
@ -82,11 +82,11 @@ class ImageRebaseliner(object):
|
||||
'http://chromium-skia-gm.commondatastorage.googleapis.com/gm')
|
||||
self._testname_pattern = re.compile('(\S+)_(\S+).png')
|
||||
self._is_svn_checkout = (
|
||||
os.path.exists('.svn') or
|
||||
os.path.exists(os.path.join(os.pardir, '.svn')))
|
||||
os.path.exists(os.path.join(expectations_root, '.svn')) or
|
||||
os.path.exists(os.path.join(expectations_root, os.pardir, '.svn')))
|
||||
self._is_git_checkout = (
|
||||
os.path.exists('.git') or
|
||||
os.path.exists(os.path.join(os.pardir, '.git')))
|
||||
os.path.exists(os.path.join(expectations_root, '.git')) or
|
||||
os.path.exists(os.path.join(expectations_root, os.pardir, '.git')))
|
||||
|
||||
# If dry_run is False, execute subprocess.call(cmd).
|
||||
# If dry_run is True, print the command we would have otherwise run.
|
||||
|
Loading…
Reference in New Issue
Block a user