You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2015/08/06 22:33:32 UTC

svn commit: r1694568 - /subversion/branches/patch-exec/subversion/tests/cmdline/patch_tests.py

Author: danielsh
Date: Thu Aug  6 20:33:31 2015
New Revision: 1694568

URL: http://svn.apache.org/r1694568
Log:
On the patch-exec branch: tests: Use the pristine repository.

* subversion/tests/cmdline/patch_tests.py
  (patch_adds_executability_nocontents, patch_adds_executability_yescontents):
     Request a read-only sandbox.
  (patch_adds_executability_yescontents):
     Ditto.  Avoid making a commit, adjust expectations accordingly.

Modified:
    subversion/branches/patch-exec/subversion/tests/cmdline/patch_tests.py

Modified: subversion/branches/patch-exec/subversion/tests/cmdline/patch_tests.py
URL: http://svn.apache.org/viewvc/subversion/branches/patch-exec/subversion/tests/cmdline/patch_tests.py?rev=1694568&r1=1694567&r2=1694568&view=diff
==============================================================================
--- subversion/branches/patch-exec/subversion/tests/cmdline/patch_tests.py (original)
+++ subversion/branches/patch-exec/subversion/tests/cmdline/patch_tests.py Thu Aug  6 20:33:31 2015
@@ -5623,7 +5623,7 @@ def patch_obstructing_symlink_traversal(
 def patch_adds_executability_nocontents(sbox):
   """patch adds svn:executable, without contents"""
 
-  sbox.build()
+  sbox.build(read_only=True)
   wc_dir = sbox.wc_dir
 
   unidiff_patch = (
@@ -5654,7 +5654,7 @@ def patch_adds_executability_nocontents(
 def patch_adds_executability_yescontents(sbox):
   """patch adds svn:executable, with contents"""
 
-  sbox.build()
+  sbox.build(read_only=True)
   wc_dir = sbox.wc_dir
 
   mu_new_contents = (
@@ -5697,12 +5697,12 @@ def patch_adds_executability_yescontents
 def patch_deletes_executability(sbox):
   """patch deletes svn:executable"""
 
-  sbox.build()
+  sbox.build(read_only=True)
   wc_dir = sbox.wc_dir
 
   ## Set up the basic state.
   sbox.simple_propset('svn:executable', 'yes', 'iota')
-  sbox.simple_commit(target='iota', message="Make 'iota' executable.")
+  #sbox.simple_commit(target='iota', message="Make 'iota' executable.")
 
   unidiff_patch = (
     "diff --git a/iota b/iota\n"
@@ -5719,7 +5719,7 @@ def patch_deletes_executability(sbox):
   expected_disk.tweak('iota') # props=None by default
 
   expected_status = svntest.actions.get_virginal_state(wc_dir, 1)
-  expected_status.tweak('iota', status=' M', wc_rev=2)
+  expected_status.tweak('iota', status='  ')
 
   expected_skip = wc.State('', { })