You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2010/11/05 17:00:00 UTC

svn commit: r1031649 - /subversion/trunk/subversion/tests/cmdline/schedule_tests.py

Author: julianfoad
Date: Fri Nov  5 15:59:59 2010
New Revision: 1031649

URL: http://svn.apache.org/viewvc?rev=1031649&view=rev
Log:
Fix a test failure caused by r1031610.

* subversion/tests/cmdline/schedule_tests.py
  (revert_inside_newly_added_dir): Don't use sbox.simple_add after
    changing the working directory. While here, simplify.

Modified:
    subversion/trunk/subversion/tests/cmdline/schedule_tests.py

Modified: subversion/trunk/subversion/tests/cmdline/schedule_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/schedule_tests.py?rev=1031649&r1=1031648&r2=1031649&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/schedule_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/schedule_tests.py Fri Nov  5 15:59:59 2010
@@ -496,17 +496,13 @@ def revert_inside_newly_added_dir(sbox):
   "revert inside a newly added dir"
 
   sbox.build(read_only = True)
-  wc_dir = sbox.wc_dir
-
-  os.chdir(wc_dir)
 
   # Schedule a new directory for addition
-  os.mkdir('foo')
-  sbox.simple_add('foo')
+  sbox.simple_mkdir('foo')
 
   # Now change into the newly added directory, revert and make sure
   # no error is output.
-  os.chdir('foo')
+  os.chdir(sbox.ospath('foo'))
   svntest.main.run_svn(None, 'revert', '.')
 
 #----------------------------------------------------------------------