OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Run the Skia DM executable. """ | 6 """Run the Skia DM executable. """ |
7 | 7 |
8 from build_step import BuildStep | 8 from build_step import BuildStep |
9 import sys | 9 import sys |
10 | 10 |
11 | 11 |
12 class RunDM(BuildStep): | 12 class RunDM(BuildStep): |
13 def _Run(self): | 13 def _Run(self): |
14 args = ['-v'] | 14 args = [ |
15 if 'Housekeeper' in self._builder_name: | 15 '--verbose', |
16 args.append('--nogpu') | 16 '--resourcePath', self._device_dirs.ResourceDir(), |
17 | 17 ] |
18 self._flavor_utils.RunFlavoredCmd('dm', args) | 18 self._flavor_utils.RunFlavoredCmd('dm', args) |
19 | 19 |
20 | |
21 if '__main__' == __name__: | 20 if '__main__' == __name__: |
22 sys.exit(BuildStep.RunBuildStep(RunDM)) | 21 sys.exit(BuildStep.RunBuildStep(RunDM)) |
OLD | NEW |