summaryrefslogtreecommitdiffstats
path: root/testing/test_env.py
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2016-01-29 13:13:15 -0500
committerNico Weber <thakis@chromium.org>2016-01-29 18:14:42 +0000
commit190973162ff6f5c4fbef6480aefa1d21bae740ab (patch)
tree623f965f19ab106c2a2523587e6170e447f609a1 /testing/test_env.py
parent12fcf32a70542f84d5ebe1e02dda5f7cfb2c8962 (diff)
downloadchromium_src-190973162ff6f5c4fbef6480aefa1d21bae740ab.zip
chromium_src-190973162ff6f5c4fbef6480aefa1d21bae740ab.tar.gz
chromium_src-190973162ff6f5c4fbef6480aefa1d21bae740ab.tar.bz2
Make path to asan_symbolize.py absolute in test_env.py
Speculative, might help with the mac/asan bots not finding this script. BUG=582459 R=maruel@chromium.org Review URL: https://codereview.chromium.org/1645183003 . Cr-Commit-Position: refs/heads/master@{#372375}
Diffstat (limited to 'testing/test_env.py')
-rwxr-xr-xtesting/test_env.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/testing/test_env.py b/testing/test_env.py
index 052df67..0513e1a 100755
--- a/testing/test_env.py
+++ b/testing/test_env.py
@@ -65,8 +65,8 @@ def get_sanitizer_env(cmd, asan, lsan, msan, tsan):
# TODO(glider): remove the symbolizer path once
# https://code.google.com/p/address-sanitizer/issues/detail?id=134 is fixed.
- symbolizer_path = os.path.abspath(os.path.join(ROOT_DIR, 'third_party',
- 'llvm-build', 'Release+Asserts', 'bin', 'llvm-symbolizer'))
+ symbolizer_path = os.path.join(ROOT_DIR,
+ 'third_party', 'llvm-build', 'Release+Asserts', 'bin', 'llvm-symbolizer')
if lsan or tsan:
# LSan is not sandbox-compatible, so we can use online symbolization. In
@@ -125,7 +125,8 @@ def get_sanitizer_env(cmd, asan, lsan, msan, tsan):
def get_sanitizer_symbolize_command(json_path=None, executable_path=None):
"""Construct the command to invoke offline symbolization script."""
- script_path = '../tools/valgrind/asan/asan_symbolize.py'
+ script_path = os.path.join(
+ ROOT_DIR, 'tools', 'valgrind', 'asan', 'asan_symbolize.py')
cmd = [sys.executable, script_path]
if json_path is not None:
cmd.append('--test-summary-json-file=%s' % json_path)