Author: danielsh
Date: Fri Aug 9 17:34:18 2013
New Revision: 1512412
URL: http://svn.apache.org/r1512412
Log:
svntest: Usability fix for manual (selective) runs.
* subversion/tests/cmdline/svntest/main.py
(execute_tests): Strip trailing commas from the "test function name" argument
before matching it with the known function names. That will allow me to
copy-paste test names into the shell even if my terminal's "word selection"
includes the comma in the highlighted-by-double-click range.
Modified:
subversion/trunk/subversion/tests/cmdline/svntest/main.py
Modified: subversion/trunk/subversion/tests/cmdline/svntest/main.py
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/main.py?rev=1512412&r1=1512411&r2=1512412&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/main.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/main.py Fri Aug 9
17:34:18 2013
@@ -2029,7 +2029,7 @@ def execute_tests(test_list, serial_only
# it to a number if possible
for testnum in list(range(1, len(test_list))):
test_case = TestRunner(test_list[testnum], testnum)
- if test_case.get_function_name() == str(arg):
+ if test_case.get_function_name() == str(arg).rstrip(','):
testnums.append(testnum)
appended = True
break