| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """ Utilities for Valgrind build steps. """ | 5 """ Utilities for Valgrind build steps. """ |
| 6 | 6 |
| 7 from default_build_step_utils import DefaultBuildStepUtils | 7 from default_build_step_utils import DefaultBuildStepUtils |
| 8 from utils import shell_utils | 8 from py.utils import shell_utils |
| 9 | 9 |
| 10 import os | 10 import os |
| 11 | 11 |
| 12 | 12 |
| 13 class ValgrindBuildStepUtils(DefaultBuildStepUtils): | 13 class ValgrindBuildStepUtils(DefaultBuildStepUtils): |
| 14 def __init__(self, build_step_instance): | 14 def __init__(self, build_step_instance): |
| 15 DefaultBuildStepUtils.__init__(self, build_step_instance) | 15 DefaultBuildStepUtils.__init__(self, build_step_instance) |
| 16 self._suppressions_file = os.path.join('tools', 'valgrind.supp') | 16 self._suppressions_file = os.path.join('tools', 'valgrind.supp') |
| 17 | 17 |
| 18 def RunFlavoredCmd(self, app, args): | 18 def RunFlavoredCmd(self, app, args): |
| (...skipping 13 matching lines...) Expand all Loading... |
| 32 make_cmd = 'make' | 32 make_cmd = 'make' |
| 33 if os.name == 'nt': | 33 if os.name == 'nt': |
| 34 make_cmd = 'make.bat' | 34 make_cmd = 'make.bat' |
| 35 cmd = [make_cmd, | 35 cmd = [make_cmd, |
| 36 target, | 36 target, |
| 37 'BUILDTYPE=%s' % self._step.configuration, | 37 'BUILDTYPE=%s' % self._step.configuration, |
| 38 ] | 38 ] |
| 39 cmd.extend(self._step.default_make_flags) | 39 cmd.extend(self._step.default_make_flags) |
| 40 cmd.extend(self._step.make_flags) | 40 cmd.extend(self._step.make_flags) |
| 41 shell_utils.run(cmd) | 41 shell_utils.run(cmd) |
| OLD | NEW |