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

Unified Diff: tools/bots/bot_utils.py

Issue 2960343002: Start getting the DDC bot to run tests using test.dart. (Closed)
Patch Set: Created 3 years, 6 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 | tools/bots/ddc_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/bot_utils.py
diff --git a/tools/bots/bot_utils.py b/tools/bots/bot_utils.py
index 9e55a66ca58fde0d22e0791fd2423eb608505b0a..e09037e13c2662108ada7611b9765aa8a4af2933 100644
--- a/tools/bots/bot_utils.py
+++ b/tools/bots/bot_utils.py
@@ -276,7 +276,7 @@ class GSUtil(object):
shell=(GSUtil.GSUTIL_IS_SHELL_SCRIPT and
sys.platform == 'win32'))
- def upload(self, local_path, remote_path, recursive=False,
+ def upload(self, local_path, remote_path, recursive=False,
public=False, multithread=False):
assert remote_path.startswith('gs://')
@@ -376,3 +376,10 @@ def GetChannelFromName(name):
if channel_name in Channel.ALL_CHANNELS:
return channel_name
return Channel.BLEEDING_EDGE
+
+def GetSystemFromName(name):
+ """Get the system from the name."""
+ for part in string.split(name, '-'):
+ if part in SYSTEM_RENAMES: return SYSTEM_RENAMES[part]
+
+ raise ValueError("Bot name '{}' not have a system name in it.".format(name))
« no previous file with comments | « no previous file | tools/bots/ddc_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698