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

Unified Diff: native_client_sdk/src/build_tools/buildbot_common.py

Issue 10539015: [NaCl SDK] Fix build_sdk to prepare for turning on pyauto example testing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | « native_client_sdk/src/build_tools/build_sdk.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/build_tools/buildbot_common.py
diff --git a/native_client_sdk/src/build_tools/buildbot_common.py b/native_client_sdk/src/build_tools/buildbot_common.py
index e1e29ddbddc7cbbab586dcdefc8bfb1107814f58..5275cd4ad8548ad930da1247f1a833402c62daf4 100644
--- a/native_client_sdk/src/build_tools/buildbot_common.py
+++ b/native_client_sdk/src/build_tools/buildbot_common.py
@@ -18,6 +18,22 @@ sys.path.append(os.path.join(SDK_SRC_DIR, 'tools'))
import oshelpers
+def IsSDKBuilder():
+ """Returns True if this script is running on an SDK builder.
+
+ False means it is either running on a trybot, or a user's machine.
+
+ Trybot names:
+ naclsdkm-((pnacl-)?linux|mac|windows(32|64))
+
+ Builder names:
+ (pnacl-)?(windows|mac|linux)-sdk-multi(rel)?
+
+ except there are currently no pnacl multirel bots, and
+ pnacl-windows-sdk-multi is actually called pnacl-win-sdk-multi."""
+ return '-sdk-multi' in os.getenv('BUILDBOT_BUILDERNAME', '')
+
+
def ErrorExit(msg):
"""Write and error to stderr, then exit with 1 signaling failure."""
sys.stderr.write(msg + '\n')
« no previous file with comments | « native_client_sdk/src/build_tools/build_sdk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698