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

Unified Diff: third_party/recipe_engine/expect_tests/handle_list.py

Issue 1241323004: Cross-repo recipe package system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Roll to latest recipes-py Created 5 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: third_party/recipe_engine/expect_tests/handle_list.py
diff --git a/third_party/recipe_engine/expect_tests/handle_list.py b/third_party/recipe_engine/expect_tests/handle_list.py
deleted file mode 100644
index db083c3afd768d71b77676e9c484ae2db56dcc67..0000000000000000000000000000000000000000
--- a/third_party/recipe_engine/expect_tests/handle_list.py
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-from .type_definitions import Handler
-
-
-class ListHandler(Handler):
- """List all of the tests instead of running them."""
- SKIP_RUNLOOP = True
-
- # Used to collect all bare test names for command line test name completion.
- COMPLETION_LIST = None
-
- class ResultStageHandler(Handler.ResultStageHandler):
- @staticmethod
- def handle_Test(test):
- if ListHandler.COMPLETION_LIST is not None:
- ListHandler.COMPLETION_LIST.append(test.name)
- else:
- print test.name
-
- @staticmethod
- def handle_MultiTest(multi_test):
- print 'MultiTest(%r, atomic=%r)' % (multi_test.name, multi_test.atomic)
- for test in multi_test.tests:
- if ListHandler.COMPLETION_LIST is not None:
- ListHandler.COMPLETION_LIST.append(test.name)
- else:
- print '|', test.name
-
- # TODO(iannucci): group tests by dir?
- # TODO(iannucci): print more data about the test in verbose mode?
« no previous file with comments | « third_party/recipe_engine/expect_tests/handle_debug.py ('k') | third_party/recipe_engine/expect_tests/handle_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698