diff options
author | Khouloud Touil <ktouil@baylibre.com> | 2019-04-12 17:39:17 +0200 |
---|---|---|
committer | Khouloud Touil <ktouil@baylibre.com> | 2019-04-16 18:18:33 +0200 |
commit | efc7c3ec0f837eabe430a966da82672ab28c0f32 (patch) | |
tree | c92938dfa6bbb1136ddf65391a2d3cb99bf26da7 /utils/job-prereq.py | |
parent | 00b180b4e29603da12f4e6aa78dca1fed32d809f (diff) |
Modify the releng-scripts to deal with branches and dtb names
This patch takes the branch and machine arguments and decide which is
the dtb name to be used.
Change-Id: I09bd67de51920c81780a77be396906a15d8247f5
Signed-off-by: Khouloud Touil <ktouil@baylibre.com>
Diffstat (limited to 'utils/job-prereq.py')
-rwxr-xr-x | utils/job-prereq.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/job-prereq.py b/utils/job-prereq.py index 1beec81..5ea745b 100755 --- a/utils/job-prereq.py +++ b/utils/job-prereq.py @@ -41,6 +41,8 @@ def parse_cmdline(machines): nargs=3, help="The type of build. It defines the URL to upload to.", required=True) + parser.add_argument('--branch', dest='vcs_branch', action='store', default='master', + help='The build branch.') args = parser.parse_args() return args @@ -54,12 +56,12 @@ def main(): job = ajt.render_job(build_type=args.build_type[0], changeid=args.build_type[1], patchset=args.build_type[2], - machine=args.machine) + machine=args.machine, vcs_branch=args.vcs_branch) else: job = ajt.render_job(build_type=args.build_type[0], - vcs_branch=args.build_type[1], - version=args.build_type[2], - machine=args.machine) + vcs_branch=args.vcs_branch, + version=args.build_type[2], + machine=args.machine) job_yaml = yaml.load(job) if args.machine == "qemux86-64": |