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

Unified Diff: recipe_modules/step/config.py

Issue 2933473002: [context] Split "env" values and prefixes. (Closed)
Patch Set: comments, tests, better definition Created 3 years, 6 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: recipe_modules/step/config.py
diff --git a/recipe_modules/step/config.py b/recipe_modules/step/config.py
index 031ceb556c5ce2b5601702be033cce68f38f1578..ca40eb6e8a15451deb9851826d99a5b746e2a456 100644
--- a/recipe_modules/step/config.py
+++ b/recipe_modules/step/config.py
@@ -24,6 +24,8 @@ def BaseConfig(**_kwargs):
timeout = Single(int, required=False),
# optional
+ env_prefixes = Dict(value_type=List((basestring,int,Path,type(None))),
+ item_fn=lambda (k, v): (k, [str(e) for e in (v or ())] or None)),
env = Dict(item_fn=lambda (k, v): (k, v if v is None else str(v)),
value_type=(basestring,int,Path,type(None))),
cwd = Single(Path, jsonish_fn=str, required=True),

Powered by Google App Engine
This is Rietveld 408576698