summaryrefslogtreecommitdiffstats
path: root/utils/job-prereq.py
diff options
context:
space:
mode:
authorKhouloud Touil <ktouil@baylibre.com>2019-04-03 11:32:10 +0200
committerKhouloud Touil <ktouil@baylibre.com>2019-04-11 12:12:02 +0200
commitbae08e098000969e13221d26fab678a39a7cd72c (patch)
tree124fcae82d285d67f77b321da52ba117ff870686 /utils/job-prereq.py
parentdca859373513eeb28499e2eb406354c5399076e7 (diff)
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 <ktouil@baylibre.com>
Diffstat (limited to 'utils/job-prereq.py')
-rwxr-xr-xutils/job-prereq.py2
1 files changed, 1 insertions, 1 deletions
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],