hack the alien env to make it work in all cases
authormkrzewic <mikolaj.krzewicki@cern.ch>
Fri, 14 Mar 2014 16:12:39 +0000 (17:12 +0100)
committermkrzewic <mikolaj.krzewicki@cern.ch>
Fri, 14 Mar 2014 16:13:06 +0000 (17:13 +0100)
PWGPP/QA/scripts/runQA.sh

index 2f07f5a..fce093f 100755 (executable)
@@ -21,6 +21,11 @@ main()
   ocdbregex='raw://'
   if [[ ${ocdbStorage} =~ ${ocdbregex} ]]; then
     alien-token-init ${alienUserName}
+    #this is a hack! alien-token init seems not enough
+    #but the gclient_env script messes up the LD_LIBRARY_PATH
+    while read x; do
+      eval ${x};
+    done < <(grep -v "LD_LIBRARY_PATH" /tmp/gclient_env_${UID})
   fi
 
   updateQA $@