subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1303333 - /subversion/trunk/subversion/tests/cmdline/svntest/main.py
Date Wed, 21 Mar 2012 09:52:22 GMT
Author: danielsh
Date: Wed Mar 21 09:52:21 2012
New Revision: 1303333

URL: http://svn.apache.org/viewvc?rev=1303333&view=rev
Log:
Python tests: Support symbolic log levels.

* subversion/tests/cmdline/svntest/main.py
  (_create_parser): Accept strings (suchas 'WARN')
    for the --set-log-level option.

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=1303333&r1=1303332&r2=1303333&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/main.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/main.py Wed Mar 21 09:52:21 2012
@@ -1525,7 +1525,7 @@ def _create_parser():
                     help='Default shard size (for fsfs)')
   parser.add_option('--config-file', action='store',
                     help="Configuration file for tests.")
-  parser.add_option('--set-log-level', action='callback', type='int',
+  parser.add_option('--set-log-level', action='callback', type='str',
                     callback=set_log_level)
   parser.add_option('--keep-local-tmp', action='store_true',
                     help="Don't remove svn-test-work/local_tmp after test " +



Mime
View raw message