| Index: recipes.py
|
| diff --git a/recipes.py b/recipes.py
|
| index 5c4c67760d25013cc4593d0916f4676b608035e5..3ed5890dc170466fb23f11e2db009c8789873e0e 100755
|
| --- a/recipes.py
|
| +++ b/recipes.py
|
| @@ -31,7 +31,12 @@ def get_package_config(args):
|
|
|
| def simulation_test(package_deps, args):
|
| from recipe_engine import simulation_test
|
| - simulation_test.main(package_deps, args=json.loads(args.args))
|
| + from recipe_engine import loader
|
| +
|
| + _, config_file = get_package_config(args)
|
| + universe = loader.RecipeUniverse(package_deps, config_file.path)
|
| +
|
| + simulation_test.main(universe, args=json.loads(args.args))
|
|
|
|
|
| def lint(package_deps, args):
|
| @@ -101,7 +106,8 @@ def run(package_deps, args):
|
| os.environ['PYTHONUNBUFFERED'] = '1'
|
| os.environ['PYTHONIOENCODING'] = 'UTF-8'
|
|
|
| - universe = loader.RecipeUniverse(package_deps)
|
| + _, config_file = get_package_config(args)
|
| + universe = loader.RecipeUniverse(package_deps, config_file.path)
|
|
|
| workdir = (args.workdir or
|
| os.path.join(os.path.dirname(os.path.realpath(__file__)), 'workdir'))
|
| @@ -115,7 +121,6 @@ def run(package_deps, args):
|
|
|
| try:
|
| ret = recipe_run.run_steps(properties, stream, universe=universe)
|
| -
|
| finally:
|
| os.chdir(old_cwd)
|
|
|
|
|