From 9ea39b32feb7dcee9e10c51aa5f625dbf2824eb6 Mon Sep 17 00:00:00 2001 From: epg Date: Tue, 18 Dec 2007 23:51:28 +0000 Subject: [PATCH] * build/run_tests.py (main): ('-http-library') == '--http-library'; it's not a tuple without a trailing comma. Oddly enough, this worked anyway with Python 2.4, though not 2.2. Change these opt tests to be lists instead of adding the trailing commas, as these seem to me to be lists, conceptually. git-svn-id: http://svn.collab.net/repos/svn/trunk@28539 612f8ebc-c883-4be0-9ee0-a4e9ef946e3a --- build/run_tests.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build/run_tests.py b/build/run_tests.py index 76051a59a..9cee4c9dd 100755 --- a/build/run_tests.py +++ b/build/run_tests.py @@ -202,21 +202,21 @@ def main(): server_minor_version, parallel = \ None, None, None, None, None, None, None, None for opt, val in opts: - if opt in ('-u', '--url'): + if opt in ['-u', '--url']: base_url = val - elif opt in ('-f', '--fs-type'): + elif opt in ['-f', '--fs-type']: fs_type = val - elif opt in ('--http-library'): + elif opt in ['--http-library']: http_library = val - elif opt in ('--server-minor-version'): + elif opt in ['--server-minor-version']: server_minor_version = val - elif opt in ('-v', '--verbose'): + elif opt in ['-v', '--verbose']: verbose = 1 - elif opt in ('-c', '--cleanup'): + elif opt in ['-c', '--cleanup']: cleanup = 1 - elif opt in ('--enable-sasl'): + elif opt in ['--enable-sasl']: enable_sasl = 1 - elif opt in ('--parallel'): + elif opt in ['--parallel']: parallel = 1 else: raise getopt.GetoptError -- 2.11.4.GIT