28 lines
787 B
Diff
28 lines
787 B
Diff
Fix a switch test that expects to an error due to read-only, but
|
|
|
|
From: David Rothenberger <d.rothenberger@entomo.com>
|
|
|
|
doesn't because the user has Administrator privileges.
|
|
---
|
|
subversion/tests/cmdline/switch_tests.py | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
diff --git a/subversion/tests/cmdline/switch_tests.py b/subversion/tests/cmdline/switch_tests.py
|
|
index 3f1e7ab..1881d9e 100755
|
|
--- a/subversion/tests/cmdline/switch_tests.py
|
|
+++ b/subversion/tests/cmdline/switch_tests.py
|
|
@@ -967,6 +967,13 @@ def refresh_read_only_attribute(sbox):
|
|
if os.geteuid() == 0:
|
|
raise svntest.Skip
|
|
|
|
+ # Same test, but for Cygwin
|
|
+ if os.name == 'posix':
|
|
+ try:
|
|
+ os.getgroups.index(513)
|
|
+ except:
|
|
+ raise svntest.Skip
|
|
+
|
|
sbox.build()
|
|
wc_dir = sbox.wc_dir
|
|
|