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

Side by Side Diff: scripts/slave/unittests/recipe_simulation_test.py

Issue 1347263002: Revert of Cross-repo recipe package system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « scripts/slave/unittests/recipe_lint_test.py ('k') | scripts/tools/show_me_the_modules.py » ('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 (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 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 shutil
8 import sys 7 import sys
9 8
10 import test_env # pylint: disable=W0403,W0611 9 import test_env # pylint: disable=W0403,W0611
11 10
12 # Delete the old recipe_engine directory which might have stale pyc files 11 from recipe_engine import simulation_test
13 # that will mess us up. 12 from slave import recipe_universe
14 shutil.rmtree(os.path.join(
15 os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(
16 os.path.realpath(__file__))))),
17 'third_party', 'recipe_engine'),
18 ignore_errors=True)
19 13
20 RECIPES_PY = os.path.join( 14 if __name__ == '__main__':
21 os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 15 simulation_test.main(recipe_universe.get_universe())
22 'recipes.py')
23
24 args = [sys.argv[0], 'simulation_test'] + sys.argv[1:]
25 os.execvp(RECIPES_PY, args)
OLDNEW
« no previous file with comments | « scripts/slave/unittests/recipe_lint_test.py ('k') | scripts/tools/show_me_the_modules.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698