Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9F0C86F25 for ; Wed, 6 Jul 2011 12:13:04 +0000 (UTC) Received: (qmail 92192 invoked by uid 500); 6 Jul 2011 12:13:04 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 92141 invoked by uid 500); 6 Jul 2011 12:13:03 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 92134 invoked by uid 99); 6 Jul 2011 12:13:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 12:13:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 12:13:02 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B8E7E2388980 for ; Wed, 6 Jul 2011 12:12:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1143369 - /subversion/trunk/subversion/tests/cmdline/lock_tests.py Date: Wed, 06 Jul 2011 12:12:42 -0000 To: commits@subversion.apache.org From: philip@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110706121242.B8E7E2388980@eris.apache.org> Author: philip Date: Wed Jul 6 12:12:42 2011 New Revision: 1143369 URL: http://svn.apache.org/viewvc?rev=1143369&view=rev Log: Fix one and a bit lock tests when run against a 1.6 svnserve. * subversion/tests/cmdline/lock_tests.py (lock_file): Allow unquoted username in error message. (lock_path_not_in_head): Don't require literal 'warning' in error message. This test still fails with a 1.6 svnserve since the client handles the server response differently and returns a different exit value. Modified: subversion/trunk/subversion/tests/cmdline/lock_tests.py Modified: subversion/trunk/subversion/tests/cmdline/lock_tests.py URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/lock_tests.py?rev=1143369&r1=1143368&r2=1143369&view=diff ============================================================================== --- subversion/trunk/subversion/tests/cmdline/lock_tests.py (original) +++ subversion/trunk/subversion/tests/cmdline/lock_tests.py Wed Jul 6 12:12:42 2011 @@ -90,7 +90,7 @@ def lock_file(sbox): # --- Meanwhile, in our other working copy... --- err_re = "(svn\: E195022\: File '.*iota' is locked in another)|" + \ - "(svn\: E160039: User 'jconstant' does not own lock on path.*iota')" + "(svn\: E160039: User '?jconstant'? does not own lock on path.*iota')" svntest.main.run_svn(None, 'update', wc_b) # -- Try to change a file -- @@ -111,7 +111,7 @@ def lock_file(sbox): svntest.main.run_svn(None, 'propset', 'sneakyuser', 'Sally', file_path_b) err_re = "(svn\: E195022\: File '.*iota' is locked in another)|" + \ - "(svn\: E160039\: User 'jconstant' does not own lock on path)" + "(svn\: E160039\: User '?jconstant'? does not own lock on path)" # attempt (and fail) to commit as user Sally svntest.actions.run_and_verify_commit(wc_b, None, None, err_re, @@ -1498,7 +1498,7 @@ def lock_path_not_in_head(sbox): svntest.actions.run_and_verify_svn(None, None, [], 'commit', '-m', 'Some deletions', wc_dir) svntest.actions.run_and_verify_svn(None, None, [], 'up', '-r1', wc_dir) - expected_lock_fail_err_re = "svn: warning:.*" \ + expected_lock_fail_err_re = "svn:.*" \ "((Path .* doesn't exist in HEAD revision)" \ "|(Lock request failed: 405 Method Not Allowed))" # Issue #3524 These lock attemtps were triggering an assert over ra_serf: