aboutsummaryrefslogtreecommitdiff
path: root/build-scripts/post-build-lava.py
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2012-08-14 12:00:42 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2012-08-14 12:00:42 +0800
commitc0398f8faa04d9f791d6e1a57c357bf5137abde4 (patch)
tree37483ece81191fc1bf41248e960a8258b7223ebd /build-scripts/post-build-lava.py
parent083c746df4da9b31c54a8791855e14f805bfef75 (diff)
update according to the review comment that the LAVA_TOKEN_FILE should be just the file name that no including the dir path information
Diffstat (limited to 'build-scripts/post-build-lava.py')
-rwxr-xr-xbuild-scripts/post-build-lava.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/build-scripts/post-build-lava.py b/build-scripts/post-build-lava.py
index 9815215..a67c2c8 100755
--- a/build-scripts/post-build-lava.py
+++ b/build-scripts/post-build-lava.py
@@ -328,6 +328,9 @@ def main():
lava_token_f = os.environ.get("LAVA_TOKEN_FILE")
if lava_token_f == None:
lava_token_f = '/var/run/lava/lava-token'
+ else:
+ lava_token_f = '/var/run/lava/%s' % lava_token_f
+
with open(lava_token_f) as fd:
lava_token = fd.read().strip()