| Index: tools/valgrind/valgrind_test.py
|
| diff --git a/tools/valgrind/valgrind_test.py b/tools/valgrind/valgrind_test.py
|
| index cafe7f942fe36b49b4426d57b6d316d278bb1a29..1d8d78c382bf43c431023c166ee79826f4963a2f 100644
|
| --- a/tools/valgrind/valgrind_test.py
|
| +++ b/tools/valgrind/valgrind_test.py
|
| @@ -357,7 +357,11 @@ class ValgrindTool(BaseTool):
|
| if self.SelfContained():
|
| proc = ["valgrind-%s.sh" % tool_name]
|
| else:
|
| - proc = ["valgrind", "--tool=%s" % tool_name]
|
| + if 'CHROME_VALGRIND' in os.environ:
|
| + path = os.path.join(os.environ['CHROME_VALGRIND'], "bin", "valgrind")
|
| + else:
|
| + path = "valgrind"
|
| + proc = [path, "--tool=%s" % tool_name]
|
|
|
| proc += ["--num-callers=%i" % int(self._options.num_callers)]
|
|
|
|
|