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

Unified Diff: scripts/slave/recipe_modules/path/test_api.py

Issue 24737002: Add Paths as first-class types in configs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: license Created 7 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/recipe_modules/path/test_api.py
diff --git a/scripts/slave/recipe_modules/path/test_api.py b/scripts/slave/recipe_modules/path/test_api.py
index 6834fa399ba5d919412548fa2c63fd12cecc5932..8978006b0d0850acee6a9827bd2db062910c0a8d 100644
--- a/scripts/slave/recipe_modules/path/test_api.py
+++ b/scripts/slave/recipe_modules/path/test_api.py
@@ -1,7 +1,13 @@
from slave import recipe_test_api
+from slave.recipe_config_types import Path
class PathTestApi(recipe_test_api.RecipeTestApi):
@recipe_test_api.mod_test_data
@staticmethod
def exists(*paths):
+ assert all(isinstance(p, Path) for p in paths)
return paths
+
+ def __getattr__(self, name):
+ return Path(name, _bypass=True)
+
« no previous file with comments | « scripts/slave/recipe_modules/path/config.expected/windows.json ('k') | scripts/slave/recipe_modules/v8/chromium_config.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698