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

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

Issue 23889036: Refactor the way that TestApi works so that it is actually useful. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: rebase 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
new file mode 100644
index 0000000000000000000000000000000000000000..6834fa399ba5d919412548fa2c63fd12cecc5932
--- /dev/null
+++ b/scripts/slave/recipe_modules/path/test_api.py
@@ -0,0 +1,7 @@
+from slave import recipe_test_api
+
+class PathTestApi(recipe_test_api.RecipeTestApi):
+ @recipe_test_api.mod_test_data
+ @staticmethod
agable 2013/09/21 02:05:31 Reverse the order of these decorators?
iannucci 2013/09/21 03:12:34 Nope, staticmethod is weird.
+ def exists(*paths):
+ return paths

Powered by Google App Engine
This is Rietveld 408576698