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

Unified Diff: scripts/slave/recipe_modules/goma/example.py

Issue 2291273005: Add counting the number of CPU's in goma module (Closed)
Patch Set: Created 4 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/goma/example.py
diff --git a/scripts/slave/recipe_modules/goma/example.py b/scripts/slave/recipe_modules/goma/example.py
index 301a677c9f21ec4e557cb1d9f6697f649bf45deb..7e2cbf28afaad2b4cb3a58384cdd2951e1bd5e44 100644
--- a/scripts/slave/recipe_modules/goma/example.py
+++ b/scripts/slave/recipe_modules/goma/example.py
@@ -7,10 +7,12 @@ DEPS = [
'recipe_engine/platform',
'recipe_engine/properties',
'recipe_engine/raw_io',
+ 'recipe_engine/step',
]
def RunSteps(api):
api.goma.ensure_goma()
+ api.step('echo', ['echo', str(api.goma.goma_jobs)])
api.goma.start(env={})
# build something using goma.
api.goma.stop(

Powered by Google App Engine
This is Rietveld 408576698