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

Unified Diff: tools/rebaseline_imagefiles.py

Issue 18209010: rebaseline.py: look in gm-expected directory to see whether it's using git or svn (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/rebaseline_imagefiles.py
===================================================================
--- tools/rebaseline_imagefiles.py (revision 9912)
+++ tools/rebaseline_imagefiles.py (working copy)
@@ -82,11 +82,11 @@
'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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698