You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2015/01/27 12:48:40 UTC
svn commit: r1655015 - /subversion/trunk/build/run_tests.py
Author: julianfoad
Date: Tue Jan 27 11:48:40 2015
New Revision: 1655015
URL: http://svn.apache.org/r1655015
Log:
* build/run_tests.py
(TestHarness.run): Correct a comment. Simplify the associated code.
Modified:
subversion/trunk/build/run_tests.py
Modified: subversion/trunk/build/run_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/build/run_tests.py?rev=1655015&r1=1655014&r2=1655015&view=diff
==============================================================================
--- subversion/trunk/build/run_tests.py (original)
+++ subversion/trunk/build/run_tests.py Tue Jan 27 11:48:40 2015
@@ -207,15 +207,12 @@ class TestHarness:
self._open_log('w')
failed = 0
- # Only run the C tests when testing ra_local
+ # If asked to skip C tests, remove non-Python tests from the list
if self.skip_c_tests:
- filtered_list = []
- for cnt, prog in enumerate(list):
+ def is_py_test(prog):
progpath, nums = self._split_nums(prog)
- if not progpath.endswith('.py'):
- continue
- filtered_list.append(prog)
- list = filtered_list
+ return progpath.endswith('.py')
+ list = filter(is_py_test, list)
for cnt, prog in enumerate(list):
failed = self._run_test(prog, cnt, len(list)) or failed