From 98a2aaab4bfe2a6f78fb417eb735bd89c7833c38 Mon Sep 17 00:00:00 2001 From: Vishal Bhoj Date: Wed, 12 Apr 2017 17:04:40 +0530 Subject: check for ART_TOKEN for submission in lava v2 We are using ART_TOKEN keyword for token in LAVA v2 so we check for that env variable before exiting. Change-Id: Ie1b21a225ba26e33bca8565bc8d5bb454fb3799d Signed-off-by: Vishal Bhoj --- post-build-report.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'post-build-report.py') diff --git a/post-build-report.py b/post-build-report.py index 2343ba5..aaa4d92 100644 --- a/post-build-report.py +++ b/post-build-report.py @@ -161,10 +161,12 @@ if __name__ == '__main__': art_url = os.environ.get("ART_URL", "http://localhost:8000/") art_token = None if urlsplit(art_url).netloc.startswith('art-reports'): - art_token = os.environ.get("ART_TOKEN_ART_REPORTS") + art_token = os.environ.get("ART_TOKEN_ART_REPORTS", None) elif urlsplit(art_url).netloc.startswith('android-qa-reports'): - art_token = os.environ.get("ART_TOKEN_ANDROID_REPORTS") - else: + art_token = os.environ.get("ART_TOKEN_ANDROID_REPORTS", None) + + # we use ART_TOKEN keyword in LAVA so we check for that as well + if art_token is None: art_token = os.environ.get("ART_TOKEN") manifest = _get_manifest("./artifacts") -- cgit v1.2.3