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

Side by Side Diff: tools/findit/utils.py

Issue 391173002: [Findit] Initiate Findit for crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. 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 | Annotate | Revision Log
« no previous file with comments | « tools/findit/run_all_tests.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import re
6 import sys
7
8
9 GIT_HASH_PATTERN = re.compile(r'^[0-9a-fA-F]{40}$')
10
11
12 def GetOSName(platform_name=sys.platform):
13 if platform_name == 'cygwin' or platform_name.startswith('win'):
14 return 'win'
15 elif platform_name.startswith('linux'):
16 return 'unix'
17 elif platform_name.startswith('darwin'):
18 return 'mac'
19 else:
20 return platform_name
21
22
23 def IsGitHash(revision):
24 return GIT_HASH_PATTERN.match(str(revision))
OLDNEW
« no previous file with comments | « tools/findit/run_all_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698