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 D87B4D6CE for ; Tue, 25 Sep 2012 15:31:29 +0000 (UTC) Received: (qmail 38669 invoked by uid 500); 25 Sep 2012 15:31:29 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 38650 invoked by uid 500); 25 Sep 2012 15:31:29 -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 38641 invoked by uid 99); 25 Sep 2012 15:31:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2012 15:31:29 +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, 25 Sep 2012 15:31:28 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 2FC8323888EA; Tue, 25 Sep 2012 15:30:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1389928 - /subversion/trunk/subversion/tests/cmdline/stat_tests.py Date: Tue, 25 Sep 2012 15:30:45 -0000 To: commits@subversion.apache.org From: stsp@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120925153045.2FC8323888EA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: stsp Date: Tue Sep 25 15:30:44 2012 New Revision: 1389928 URL: http://svn.apache.org/viewvc?rev=1389928&view=rev Log: * subversion/tests/cmdline/stat_tests.py (status_unversioned_dir): Create a nested unversioned directory inside the standard test working copy, to avoid an unexpected error message when this test is run within a working copy with an unsupported newer format. The 'node not found' error is now the only possible error condition so stop checking for 'not a working copy'. We'll need a separate test for the latter error condition -- this test would somehow have to avoid failing within a working copy using an unsupported format. Suggested by: philip Modified: subversion/trunk/subversion/tests/cmdline/stat_tests.py Modified: subversion/trunk/subversion/tests/cmdline/stat_tests.py URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/stat_tests.py?rev=1389928&r1=1389927&r2=1389928&view=diff ============================================================================== --- subversion/trunk/subversion/tests/cmdline/stat_tests.py (original) +++ subversion/trunk/subversion/tests/cmdline/stat_tests.py Tue Sep 25 15:30:44 2012 @@ -989,20 +989,15 @@ def status_ignored_dir(sbox): @Issue(2030) def status_unversioned_dir(sbox): "status on unversioned dir" - sbox.build(read_only = True, create_wc = False) - path = sbox.wc_dir - svntest.main.safe_rmtree(sbox.wc_dir) - os.mkdir(path) - - # Depending on whether you run the tests below a working copy - # or not, the error message might either be something like - # svn: warning: W155007: '...copies/stat_tests-19' is not a working copy - # or - # svn: warning: W155010: The node '...copies/stat_tests-19' was not found. + sbox.build(read_only = True) + + # Create two unversioned directories within the test working copy + path = sbox.ospath('1/2') + os.makedirs(path) expected_err = "svn: warning: W1550(07|10): .*'.*(/|\\\\)" + \ os.path.basename(path) + \ - "' (is not a working copy|was not found)" + "' was not found" svntest.actions.run_and_verify_svn2(None, [], expected_err, 0, "status", path)