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

Unified Diff: scripts/slave/recipe_modules/platform/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/platform/api.py
diff --git a/scripts/slave/recipe_modules/platform/api.py b/scripts/slave/recipe_modules/platform/api.py
index bb1ed47f20261f52983d6d01e5efde395adc33d6..9875229522aad99b799a16602e0e791c076325e8 100644
--- a/scripts/slave/recipe_modules/platform/api.py
+++ b/scripts/slave/recipe_modules/platform/api.py
@@ -43,10 +43,10 @@ class PlatformApi(recipe_api.RecipeApi):
self._bits = max(machine_bits, processor_bits)
self._arch = 'intel'
- if self._mock is not None:
+ if self._test_data.enabled:
# Default to linux/64, unless test case says otherwise.
- self._name = norm_plat(self._mock.get('name', 'linux'))
- self._bits = norm_bits(self._mock.get('bits', 64))
+ self._name = norm_plat(self._test_data.get('name', 'linux'))
+ self._bits = norm_bits(self._test_data.get('bits', 64))
@property
def is_win(self):

Powered by Google App Engine
This is Rietveld 408576698