From c350386d9dcf1123573e46ae5f6e0d71264aa66b Mon Sep 17 00:00:00 2001 From: "mmoss@chromium.org" Date: Thu, 15 Oct 2009 18:19:54 +0000 Subject: Restrict tests to '.py' files. This fixes a problem where the try bot was trying to run gyptest*.py.rej files from a bad patch. Review URL: http://codereview.chromium.org/267121 git-svn-id: http://gyp.googlecode.com/svn/trunk@701 78cadc50-ecff-11dd-a971-7dbc132099af --- gyptest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gyptest.py') diff --git a/gyptest.py b/gyptest.py index 6e6b41cd..a285fe1f 100644 --- a/gyptest.py +++ b/gyptest.py @@ -118,7 +118,7 @@ def find_all_gyptest_files(directory): if '.svn' in dirs: dirs.remove('.svn') result.extend([ os.path.join(root, f) for f in files - if f.startswith('gyptest') ]) + if f.startswith('gyptest') and f.endswith('.py') ]) result.sort() return result -- cgit v1.2.3