diff options
author | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 12:05:57 +0000 |
---|---|---|
committer | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 12:05:57 +0000 |
commit | b503fe3b0bc358db7f19a052fd144c4e719fd285 (patch) | |
tree | 7309ad7daef9e030bbcab9472279047f5d346864 /tools/valgrind/common.py | |
parent | a703bebfba0afde4112c833504e98c94f558e5eb (diff) | |
download | chromium_src-b503fe3b0bc358db7f19a052fd144c4e719fd285.zip chromium_src-b503fe3b0bc358db7f19a052fd144c4e719fd285.tar.gz chromium_src-b503fe3b0bc358db7f19a052fd144c4e719fd285.tar.bz2 |
Reuse BaseTool.Execute in EmbeddedTool.
Implement a dummy GccTsan test runner that just invokes the instrumented binary.
Make sure there are 2 blank lines between the top-level definitions.
Review URL: http://codereview.chromium.org/8275001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105793 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind/common.py')
-rwxr-xr-x | tools/valgrind/common.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/valgrind/common.py b/tools/valgrind/common.py index 98eecb7..9ff0d5f 100755 --- a/tools/valgrind/common.py +++ b/tools/valgrind/common.py @@ -1,4 +1,4 @@ -# Copyright (c) 2009 The Chromium Authors. All rights reserved. +# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. @@ -146,3 +146,8 @@ def PlatformNames(): if IsWindows(): return ['win32'] raise NotImplementedError('Unknown platform "%s".' % sys.platform) + + +def PutEnvAndLog(env_name, env_value): + os.putenv(env_name, env_value) + logging.info('export %s=%s', env_name, env_value) |