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

Unified Diff: build/android/buildbot/tests/bb_run_bot_test.py

Issue 11666023: Move android buildbot test logic into python (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reupload to fix copy detection on PRESUBMIT.py Created 7 years, 11 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 | « build/android/buildbot/buildbot_functions.sh ('k') | build/android/pylib/apk_info.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/buildbot/tests/bb_run_bot_test.py
diff --git a/build/android/buildbot/tests/bb_run_bot_test.py b/build/android/buildbot/tests/bb_run_bot_test.py
new file mode 100755
index 0000000000000000000000000000000000000000..075c0337dc6a2e68f52e29566c4be14abb836825
--- /dev/null
+++ b/build/android/buildbot/tests/bb_run_bot_test.py
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import sys
+import os
+import subprocess
cmp 2013/01/09 02:16:28 sort alphanum
Isaac (away) 2013/01/09 03:10:15 Done.
+
+BUILDBOT_DIR = os.path.join(os.path.dirname(__file__), '..')
+sys.path.append(BUILDBOT_DIR)
+import bb_run_bot
+
+def main():
cmp 2013/01/09 02:16:28 insert empty line before line 14
Isaac (away) 2013/01/09 03:10:15 Done.
+ code = 0
+ for bot_id in bb_run_bot.GetBotStepMap():
+ proc = subprocess.Popen(
+ [os.path.join(BUILDBOT_DIR, 'bb_run_bot.py'),'--bot-id', bot_id,
+ '--TESTING'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ _, err = proc.communicate()
+ code |= proc.returncode
+ if proc.returncode != 0:
+ print 'Error running bb_run_bot with id="%s"' % bot_id, err
+
+ return code
+
+if __name__ == '__main__':
cmp 2013/01/09 02:16:28 insert extra empty line before line 27
Isaac (away) 2013/01/09 03:10:15 Done. Looks like I forgot to run gpylint on this.
+ sys.exit(main())
« no previous file with comments | « build/android/buildbot/buildbot_functions.sh ('k') | build/android/pylib/apk_info.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698