You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2014/04/01 11:21:16 UTC
svn commit: r1583580 - /subversion/trunk/subversion/tests/cmdline/wc_tests.py
Author: philip
Date: Tue Apr 1 09:21:16 2014
New Revision: 1583580
URL: http://svn.apache.org/r1583580
Log:
Skip a test that fails when run as root.
Found by: Jeff Hemmelgarn <jeffhemme{_AT_}gmail.com>
* subversion/tests/cmdline/wc_tests.py
(is_posix_os_and_not_root): New.
(status_with_inaccessible_wc_db): Skip if root.
Modified:
subversion/trunk/subversion/tests/cmdline/wc_tests.py
Modified: subversion/trunk/subversion/tests/cmdline/wc_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/wc_tests.py?rev=1583580&r1=1583579&r2=1583580&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/wc_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/wc_tests.py Tue Apr 1 09:21:16 2014
@@ -119,8 +119,13 @@ def add_with_symlink_in_path(sbox):
sbox.simple_append('A/B/kappa', 'xyz', True)
sbox.simple_add('Z/B/kappa')
+def is_posix_os_and_not_root():
+ if not svntest.main.is_posix_os():
+ return False
+ return os.getuid() != 0
+
@Issue(4118)
-@SkipUnless(svntest.main.is_posix_os)
+@SkipUnless(is_posix_os_and_not_root)
def status_with_inaccessible_wc_db(sbox):
"""inaccessible .svn/wc.db"""