diff options
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) |