Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: infra/bots/recipe_modules/skia/valgrind_flavor.py

Issue 2198173002: Re-organize Skia recipes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix missing dependency Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5
6 import default_flavor
7
8
9 """Utils for running under Valgrind."""
10
11
12 class ValgrindFlavorUtils(default_flavor.DefaultFlavorUtils):
13 def __init__(self, *args, **kwargs):
14 super(ValgrindFlavorUtils, self).__init__(*args, **kwargs)
15 self._suppressions_file = self._skia_api.skia_dir.join(
16 'tools', 'valgrind.supp')
17
18 def step(self, name, cmd, **kwargs):
19 new_cmd = ['valgrind', '--gen-suppressions=all', '--leak-check=full',
20 '--track-origins=yes', '--error-exitcode=1', '--num-callers=40',
21 '--suppressions=%s' % self._suppressions_file]
22 path_to_app = self.out_dir.join(cmd[0])
23 new_cmd.append(path_to_app)
24 new_cmd.extend(cmd[1:])
25 return self._skia_api.run(self._skia_api.m.step, name, cmd=new_cmd,
26 **kwargs)
27
OLDNEW
« no previous file with comments | « infra/bots/recipe_modules/skia/ssh_devices.py ('k') | infra/bots/recipe_modules/skia/xsan_flavor.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698