summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2018-03-08 22:05:52 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2018-03-08 22:05:52 +0800
commitafe0a6370eedc035edc9f834e39957838d7731d0 (patch)
treec09a0f5f8fb559a7c5e911043af5fc9e0db93236
parent9341e075f62342b55051bdb2d6a2ab1eb48899e9 (diff)
downloadpost-build-lava-master.tar.gz
post-build-lava.py: replace WIFI AP info placeholdersHEADmaster
add lines to replace the AP_SSID and AP_KEY placeholders in templates in test-plans repository Change-Id: Id2fbce43ddda45fa9bd664ca0cf62bb23bf02770 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-xpost-build-lava.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/post-build-lava.py b/post-build-lava.py
index 009682c..41f4753 100755
--- a/post-build-lava.py
+++ b/post-build-lava.py
@@ -313,6 +313,8 @@ def submit_job_from_url():
replace("job.json", "%%ART_TOKEN%%", os.environ.get("ART_TOKEN"))
replace("job.json", "%%ARTIFACTORIAL_TOKEN%%", os.environ.get("ARTIFACTORIAL_TOKEN"))
replace("job.json", "%%QA_REPORTS_TOKEN%%", os.environ.get("QA_REPORTS_TOKEN"))
+ replace("job.json", "%%AP_SSID%%", os.environ.get("AP_SSID"))
+ replace("job.json", "%%AP_KEY%%", os.environ.get("AP_KEY"))
with open("job.json") as fd:
config = fd.read().strip()