From bae08e098000969e13221d26fab678a39a7cd72c Mon Sep 17 00:00:00 2001 From: Khouloud Touil Date: Wed, 3 Apr 2019 11:32:10 +0200 Subject: Fix the use of the --build-type argument This patch fixes the use of the --build-type to take only the first part of it, which is the build type. Change-Id: Ic2f631a639babbd075bb005b2d33415e4ca916ab Signed-off-by: Khouloud Touil --- utils/job-prereq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/job-prereq.py b/utils/job-prereq.py index ba51270..1beec81 100755 --- a/utils/job-prereq.py +++ b/utils/job-prereq.py @@ -50,7 +50,7 @@ def main(): templates_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../templates') ajt = agljobtemplate.Agljobtemplate(templates_dir) args = parse_cmdline(ajt.machines) - if args.build_type == "ci": + if args.build_type[0] == "ci": job = ajt.render_job(build_type=args.build_type[0], changeid=args.build_type[1], patchset=args.build_type[2], -- cgit 1.2.3-korg