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

Side by Side Diff: third_party/py_vulcanize/bin/run_py_tests

Issue 1422623008: Move py_vulcanize/run_py_tests and make it disabled by default. (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | third_party/py_vulcanize/run_py_tests » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 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 import os 6 import os
7 import sys 7 import sys
8 8
9 _CATAPULT = os.path.abspath( 9 _CATAPULT = os.path.abspath(os.path.join(
10 os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir)) 10 os.path.dirname(__file__), os.path.pardir, os.path.pardir, os.path.pardir))
11 11
12 12
13 def _AddToPathIfNeeded(path): 13 def _AddToPathIfNeeded(path):
14 if path not in sys.path: 14 if path not in sys.path:
15 sys.path.insert(0, path) 15 sys.path.insert(0, path)
16 16
17 17
18 if __name__ == '__main__': 18 if __name__ == '__main__':
19 _AddToPathIfNeeded(_CATAPULT) 19 _AddToPathIfNeeded(_CATAPULT)
20 20
21 from hooks import install 21 from hooks import install
22 if '--no-install-hooks' in sys.argv: 22 if '--no-install-hooks' in sys.argv:
23 sys.argv.remove('--no-install-hooks') 23 sys.argv.remove('--no-install-hooks')
24 else: 24 else:
25 install.InstallHooks() 25 install.InstallHooks()
26 26
27 # This flag is added only temporarily so that the tests can
28 # be re-enabled on the waterfall and fixed using try jobs.
29 # See https://github.com/catapult-project/catapult/issues/1584
30 if '--really-run' in sys.argv:
31 sys.argv.remove('--really-run')
32 else:
33 print 'Skipping test!'
34 sys.exit(0)
35
27 from catapult_build import run_with_typ 36 from catapult_build import run_with_typ
28 sys.exit(run_with_typ.Run( 37 sys.exit(run_with_typ.Run(
29 os.path.join(_CATAPULT, 'third_party', 'py_vulcanize'))) 38 os.path.join(_CATAPULT, 'third_party', 'py_vulcanize')))
30 39
OLDNEW
« no previous file with comments | « no previous file | third_party/py_vulcanize/run_py_tests » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698