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

Unified Diff: recipe_modules/platform/example.py

Issue 2909983003: [loader] Make recipe engine support examples/ module subdir (Closed)
Patch Set: Created 3 years, 7 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/platform/example.py
diff --git a/recipe_modules/platform/example.py b/recipe_modules/platform/example.py
deleted file mode 100644
index b03124e4ea9fb8523a5e8361898062f7aa3753c3..0000000000000000000000000000000000000000
--- a/recipe_modules/platform/example.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright 2015 The LUCI Authors. All rights reserved.
-# Use of this source code is governed under the Apache License, Version 2.0
-# that can be found in the LICENSE file.
-
-DEPS = [
- 'platform',
- 'step',
-]
-
-def RunSteps(api):
- step_result = api.step('platform things', cmd=None)
- step_result.presentation.logs['name'] = [api.platform.name]
- step_result.presentation.logs['bits'] = [str(api.platform.bits)]
- step_result.presentation.logs['arch'] = [api.platform.arch]
- step_result.presentation.logs['cpu_count'] = [str(api.platform.cpu_count)]
-
-
-def GenTests(api):
- yield api.test('linux64') + api.platform('linux', 64)
- yield api.test('mac64') + api.platform('mac', 64)
- yield api.test('win32') + api.platform('win', 32)
- yield api.test('four_cores') + api.platform.cpu_count(4)
« no previous file with comments | « recipe_modules/path/examples/full.expected/win_swarming.json ('k') | recipe_modules/platform/example.expected/four_cores.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698