summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/valgrind/chrome_tests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/valgrind/chrome_tests.py b/tools/valgrind/chrome_tests.py
index ab0ff66..a7019e8 100755
--- a/tools/valgrind/chrome_tests.py
+++ b/tools/valgrind/chrome_tests.py
@@ -220,7 +220,11 @@ class ChromeTests:
# Sets LD_LIBRARY_PATH to the build folder so external libraries can be
# loaded.
- os.putenv("LD_LIBRARY_PATH", self._options.build_dir)
+ if (os.getenv("LD_LIBRARY_PATH")):
+ os.putenv("LD_LIBRARY_PATH", "%s:%s" % (os.getenv("LD_LIBRARY_PATH"),
+ self._options.build_dir))
+ else:
+ os.putenv("LD_LIBRARY_PATH", self._options.build_dir)
return valgrind_test.RunTool(cmd, module)
def TestBase(self):