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

Unified Diff: scripts/slave/unittests/recipe_simulation_test.py

Issue 1241323004: Cross-repo recipe package system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Change to googlesource 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/unittests/recipe_simulation_test.py
diff --git a/scripts/slave/unittests/recipe_simulation_test.py b/scripts/slave/unittests/recipe_simulation_test.py
index abb4bedc7d6155dabb78b9c40e0e7b1f2577e815..d9129b2f313a71d8f35a01838921e671773b7fad 100755
--- a/scripts/slave/unittests/recipe_simulation_test.py
+++ b/scripts/slave/unittests/recipe_simulation_test.py
@@ -6,10 +6,9 @@
import os
import sys
-import test_env # pylint: disable=W0403,W0611
+RECIPES_PY = os.path.join(
+ os.path.dirname(os.path.dirname(os.path.realpath(__file__))),
+ 'recipes.py')
-from recipe_engine import simulation_test
-from slave import recipe_universe
-
-if __name__ == '__main__':
- simulation_test.main(recipe_universe.get_universe())
+args = [sys.argv[0], 'simulation_test'] + sys.argv[1:]
+os.execvp(RECIPES_PY, args)
iannucci 2015/09/15 00:10:48 this may 'splode on windows, not sure.
luqui 2015/09/15 19:17:42 I tested recipes.py bootstrap on Windows which als

Powered by Google App Engine
This is Rietveld 408576698