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

Unified Diff: scripts/slave/README.recipes.md

Issue 1111413005: Some changes to allow recipes and modules to live noncentrally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Review comments Created 5 years, 7 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
« no previous file with comments | « no previous file | scripts/slave/annotated_run.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/README.recipes.md
diff --git a/scripts/slave/README.recipes.md b/scripts/slave/README.recipes.md
index dbab2e21ce80af5de8ad51cb4984a417561864d3..dc60edfe18aa60cbac378c031e6fe5cd78d7a4f9 100644
--- a/scripts/slave/README.recipes.md
+++ b/scripts/slave/README.recipes.md
@@ -350,11 +350,18 @@ Next, we get to the `config_ctx`. This is the 'context' for all the config
items in this file, and will become the `CONFIG_CTX` for the entire module.
Other modules may add into this config context (for example, they could have
a `hello_config.py` file, which imports this config context like
-`from RECIPE_MODULES.hello import CONFIG_CTX`. This will be useful for
-separation of concerns with the `set_config()` method.). The string format
-argument that `config_item_context` takes will be used to format the test case
-names and test expectation file names. Not terribly useful here, but it can be
-useful for making the test names more obvious in more complex cases.
+
+```python
+import DEPS
+CONFIG_CTX = DEPS['hello'].CONFIG_CTX
+```
+
+
+This will be useful for separation of concerns with the `set_config()`
+method.). The string format argument that `config_item_context` takes will be
+used to format the test case names and test expectation file names. Not
+terribly useful here, but it can be useful for making the test names more
+obvious in more complex cases.
Finally we get to the config items themselves. A config item is a function
decorated with the `config_ctx`, and takes a config blob as 'c'. The config item
« no previous file with comments | « no previous file | scripts/slave/annotated_run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698