armband: Fix file handler in lab-config test -e 73/20373/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 5 Sep 2016 16:34:32 +0000 (18:34 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 5 Sep 2016 16:36:30 +0000 (18:36 +0200)
Previous change adding lab-config/.../local_env support introduced
an issue, in the form of `test -e file:///path/to/local_env`,
which is not supported.

Change-Id: I1566b41765329f18523cfc506c9112b6694a8317
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
jjb/armband/armband-deploy.sh

index d762650..fb4c1ea 100755 (executable)
@@ -52,7 +52,7 @@ if [[ $LAB_CONFIG_URL =~ ^(git|ssh):// ]]; then
     LAB_CONFIG_URL=file://${WORKSPACE}/lab-config
 
     # Source local_env if present, which contains POD-specific config
-    local_env="$LAB_CONFIG_URL/labs/$LAB_NAME/$POD_NAME/fuel/config/local_env"
+    local_env="${WORKSPACE}/lab-config/labs/$LAB_NAME/$POD_NAME/fuel/config/local_env"
     if [ -e $local_env ]; then
         echo "-- Sourcing local environment file"
         source $local_env