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 A85E4E279 for ; Tue, 12 Feb 2013 14:00:19 +0000 (UTC) Received: (qmail 8276 invoked by uid 500); 12 Feb 2013 14:00:19 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 8223 invoked by uid 500); 12 Feb 2013 14:00:19 -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 8175 invoked by uid 99); 12 Feb 2013 14:00:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 14:00:18 +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; Tue, 12 Feb 2013 14:00:17 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B7EC223889B3; Tue, 12 Feb 2013 13:59:58 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1445172 - /subversion/trunk/subversion/tests/cmdline/blame_tests.py Date: Tue, 12 Feb 2013 13:59:58 -0000 To: commits@subversion.apache.org From: philip@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130212135958.B7EC223889B3@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: philip Date: Tue Feb 12 13:59:58 2013 New Revision: 1445172 URL: http://svn.apache.org/r1445172 Log: * subversion/tests/cmdline/blame_tests.py (blame_multiple_targets): Verify output, don't make spurious commit. Modified: subversion/trunk/subversion/tests/cmdline/blame_tests.py Modified: subversion/trunk/subversion/tests/cmdline/blame_tests.py URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/blame_tests.py?rev=1445172&r1=1445171&r2=1445172&view=diff ============================================================================== --- subversion/trunk/subversion/tests/cmdline/blame_tests.py (original) +++ subversion/trunk/subversion/tests/cmdline/blame_tests.py Tue Feb 12 13:59:58 2013 @@ -818,20 +818,20 @@ def blame_multiple_targets(sbox): sbox.build() + # First, make a new revision of iota. + iota = os.path.join(sbox.wc_dir, 'iota') + svntest.main.file_append(iota, "New contents for iota\n") + svntest.main.run_svn(None, 'ci', '-m', '', iota) + + expected_output = [ + " 1 jrandom This is the file 'iota'.\n", + " 2 jrandom New contents for iota\n", + ] + def multiple_wc_targets(): "multiple wc targets" - # First, make a new revision of iota. - iota = os.path.join(sbox.wc_dir, 'iota') non_existent = os.path.join(sbox.wc_dir, 'non-existent') - svntest.main.file_append(iota, "New contents for iota\n") - svntest.main.run_svn(None, 'ci', - '-m', '', iota) - - expected_output = [ - " 1 jrandom This is the file 'iota'.\n", - " 2 jrandom New contents for iota\n", - ] expected_err = ".*W155010.*\n.*E200009.*" expected_err_re = re.compile(expected_err, re.DOTALL) @@ -843,22 +843,13 @@ def blame_multiple_targets(sbox): if not expected_err_re.match("".join(error)): raise svntest.Failure('blame failed: expected error "%s", but received ' '"%s"' % (expected_err, "".join(error))) + svntest.verify.verify_outputs(None, output, None, expected_output, None) def multiple_url_targets(): "multiple url targets" - # First, make a new revision of iota. - iota = os.path.join(sbox.wc_dir, 'iota') iota_url = sbox.repo_url + '/iota' non_existent = sbox.repo_url + '/non-existent' - svntest.main.file_append(iota, "New contents for iota\n") - svntest.main.run_svn(None, 'ci', - '-m', '', iota) - - expected_output = [ - " 1 jrandom This is the file 'iota'.\n", - " 2 jrandom New contents for iota\n", - ] expected_err = ".*(W160017|W160013|W150000).*\n.*E200009.*" expected_err_re = re.compile(expected_err, re.DOTALL) @@ -870,6 +861,7 @@ def blame_multiple_targets(sbox): if not expected_err_re.match("".join(error)): raise svntest.Failure('blame failed: expected error "%s", but received ' '"%s"' % (expected_err, "".join(error))) + svntest.verify.verify_outputs(None, output, None, expected_output, None) # Test one by one multiple_wc_targets()