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

Side by Side Diff: sky/tools/skypy/find_tests.py

Issue 710133002: Make Sky's test_perf actually test performance (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | sky/tools/test_perf » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import os
6
7
8 IGNORED_DIRECTORIES = ['resources']
9 TEST_EXTENSIONS = ['sky']
10
11
12 def find_tests(directory):
13 for root, dirs, files in os.walk(directory):
14 for file_name in files:
15 extension = os.path.splitext(file_name)[1]
16 if extension.lstrip('.') in TEST_EXTENSIONS:
17 yield os.path.join(root, file_name)
18 for ignored_directory in IGNORED_DIRECTORIES:
19 if ignored_directory in dirs:
20 dirs.remove(ignored_directory)
OLDNEW
« no previous file with comments | « no previous file | sky/tools/test_perf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698