aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2013-04-03 16:39:27 -0700
committerChromeBot <chrome-bot@google.com>2013-04-03 18:57:04 -0700
commit5b0ad87ba68391dca762341f708f63c383f90e4a (patch)
tree54b777c611d7e5b4f5b1f553466e39b57acb00d0
parent646ae43ef2983d7ace40fe33c46244bed3c255de (diff)
downloadtoolchain-utils-5b0ad87ba68391dca762341f708f63c383f90e4a.tar.gz
Change default value of branch, fix a branch name.
BUG=None TEST=None Change-Id: I7b4966580493544f1410f2c754e7a76cbfd04635 Reviewed-on: https://gerrit-int.chromium.org/35018 Reviewed-by: Luis Lozano <llozano@chromium.org> Commit-Queue: Yunlian Jiang <yunlian@google.com> Tested-by: Yunlian Jiang <yunlian@google.com>
-rwxr-xr-xremote_gcc_build.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/remote_gcc_build.py b/remote_gcc_build.py
index 0f6f7dc1..f7cb6c28 100755
--- a/remote_gcc_build.py
+++ b/remote_gcc_build.py
@@ -290,7 +290,7 @@ def GetGccBranch(branch):
if not out:
GccBranchForToolchain(branch)
if not out:
- out = "remotes/m/master"
+ out = "master"
new_branch = out.splitlines()[0]
return new_branch
@@ -376,8 +376,8 @@ def Main(argv):
"under the chroot of chromeos_root and copy "
"the image to src/build/image/$board/latest."
" Default is False"))
- parser.add_argument("-b", "--branch", dest="branch", default="master",
- help=("The branch to run trybot, default is master"))
+ parser.add_argument("-b", "--branch", dest="branch", default="",
+ help=("The branch to run trybot, default is None"))
parser.add_argument("-p", "--patch", dest="patch", default="",
help=("The patches to be applied, the patches numbers "
"be seperated by ','"))
@@ -392,7 +392,7 @@ def Main(argv):
# descritption is the keyword of the build in build log.
# Here we use [{branch)_{patchnumber}_{target}]
description = "{0}_{1}_{2}".format(branch, GetPatchString(patch), target)
- if args.chromeos_version and args.branch != "master":
+ if args.chromeos_version and args.branch:
raise Exception("You can not set chromeos_version and branch at the "
"same time.")
chromeos_version = args.chromeos_version