summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2017-09-21 13:56:11 -0700
committerKevin Hilman <khilman@baylibre.com>2017-09-21 13:56:24 -0700
commit1bd6162cb9ab717b55ce0f0635bea7c1366b07e6 (patch)
tree405149cd1902f82dbd7e64916ca1f1521dd561b7 /utils
parent2fecbc0916bae86505375c49a3bc82ae9354b928 (diff)
create-jobs: find templates with relative path
Change-Id: I89077a0e84fce087a1e72e3232fac3161b6c9da1 Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/create-jobs.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/create-jobs.py b/utils/create-jobs.py
index d3374ed..043facc 100755
--- a/utils/create-jobs.py
+++ b/utils/create-jobs.py
@@ -4,7 +4,7 @@
import agljobtemplate
import argparse
import urlparse
-
+import os
def parse_cmdline(machines, tests, rfs_types):
parser = argparse.ArgumentParser(description="AGL create job",
@@ -47,7 +47,8 @@ def parse_cmdline(machines, tests, rfs_types):
def main():
img = None
- ajt = agljobtemplate.Agljobtemplate('templates')
+ templates_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '../templates')
+ ajt = agljobtemplate.Agljobtemplate(templates_dir)
args = parse_cmdline(ajt.machines, ajt.tests, ajt.rfs_types)
if args.img_name: