OLD | NEW |
| (Empty) |
1 #!/usr/bin/env python | |
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 | |
4 # found in the LICENSE file. | |
5 | |
6 """Run self-tests within buildbot code. """ | |
7 | |
8 import sys | |
9 | |
10 from build_step import BuildStep | |
11 from py.utils import misc | |
12 from py.utils import shell_utils | |
13 | |
14 | |
15 class BuildbotSelfTests(BuildStep): | |
16 def _Run(self): | |
17 with misc.ChDir(misc.BUILDBOT_PATH): | |
18 shell_utils.run(['python', 'run_unittests']) | |
19 | |
20 | |
21 if '__main__' == __name__: | |
22 sys.exit(BuildStep.RunBuildStep(BuildbotSelfTests)) | |
OLD | NEW |