summaryrefslogtreecommitdiffstats
path: root/utils/job-prereq.py
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2020-06-03 15:23:53 +0200
committerCorentin LABBE <clabbe@baylibre.com>2020-06-11 08:04:46 +0200
commitb5bcfa146da2baf76fd466a7130a08465e9331ba (patch)
tree2d57826a0c1c1fb985e5af2fbc727a699e5f8faa /utils/job-prereq.py
parentb7b65449c824bc5cd7fdd0fba4a190fb47090e68 (diff)
SPEC-3408: convert releng-scripts to python3
This patch convert releng-scripts to python3. While at it, let's creating requirements.txt for specifying depencies yaml and jinja2. Change-Id: Iba7b45b10fd7e1336bf1e4a73e0e6275392e373c Bug-AGL: SPEC-3408 Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Diffstat (limited to 'utils/job-prereq.py')
-rwxr-xr-xutils/job-prereq.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/job-prereq.py b/utils/job-prereq.py
index 08531cd..213a84a 100755
--- a/utils/job-prereq.py
+++ b/utils/job-prereq.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import agljobtemplate
@@ -67,15 +67,15 @@ def main():
if args.machine == "qemux86-64" or args.machine == "qemuarm" or args.machine == "qemuarm64":
for key in FILE_MAP_QEMU:
if getattr(args, key):
- print job_yaml["actions"][0]["deploy"]["images"][FILE_MAP_QEMU[key]].get("url").split('/')[-1]
+ print(job_yaml["actions"][0]["deploy"]["images"][FILE_MAP_QEMU[key]].get("url").split('/')[-1])
elif args.machine == "intel-corei7-64" or args.machine == "upsquare":
for key in FILE_MAP_X86:
if getattr(args, key):
- print job_yaml["actions"][0]["deploy"][key].get("url").split('/')[-1]
+ print(job_yaml["actions"][0]["deploy"][key].get("url").split('/')[-1])
else:
for key in FILE_MAP:
if getattr(args, key):
- print job_yaml["actions"][0]["deploy"][key].get("url").split('/')[-1]
+ print(job_yaml["actions"][0]["deploy"][key].get("url").split('/')[-1])
if __name__ == '__main__':
main()