You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ja...@apache.org on 2015/06/16 22:31:39 UTC

trafficserver-qa git commit: fix the env setting of LD_LIBRARY_PATH/DYLD_LIBRARY_PATH

Repository: trafficserver-qa
Updated Branches:
  refs/heads/master 5aee94822 -> c9de8b8c6


fix the env setting of LD_LIBRARY_PATH/DYLD_LIBRARY_PATH


Project: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/commit/c9de8b8c
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/tree/c9de8b8c
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/diff/c9de8b8c

Branch: refs/heads/master
Commit: c9de8b8c675bf71f281bb4324b95a8c91210cf6e
Parents: 5aee948
Author: Feifei Cai <ff...@yahoo-inc.com>
Authored: Fri Jun 5 08:05:57 2015 +0000
Committer: Feifei Cai <ff...@yahoo-inc.com>
Committed: Fri Jun 5 08:05:57 2015 +0000

----------------------------------------------------------------------
 tsqa/environment.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver-qa/blob/c9de8b8c/tsqa/environment.py
----------------------------------------------------------------------
diff --git a/tsqa/environment.py b/tsqa/environment.py
index 6244a52..e95b7cd 100644
--- a/tsqa/environment.py
+++ b/tsqa/environment.py
@@ -273,8 +273,9 @@ class Environment(object):
         for env_key in ('LD_LIBRARY_PATH',  # for *nix
                         'DYLD_LIBRARY_PATH',  # for mac
                         ):
-            if environ.has_key(env_key) and self.layout.libdir not in environ[env_key].split(':'):
-                environ[env_key] = self.layout.libdir + ':' + environ[env_key]
+            if environ.has_key(env_key):
+                if self.layout.libdir not in environ[env_key].split(':'):
+                    environ[env_key] = self.layout.libdir + ':' + environ[env_key]
             else:
                 environ[env_key] = self.layout.libdir