You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by pb...@apache.org on 2013/06/07 17:18:59 UTC

svn commit: r1490679 - /subversion/trunk/win-tests.py

Author: pburba
Date: Fri Jun  7 15:18:59 2013
New Revision: 1490679

URL: http://svn.apache.org/r1490679
Log:
Follow-up to r1464416, fix minor error which occurs during ra_serf test
setup in a clean build environment:

C:\SVN\src-branch-1.8.x-2>win-tests.py -r -f bdb --httpd-dir C:\Apache22
  --httpd-port 7829 -u http://127.0.0.1:7829 -c
Adding password for user jrandom
Adding password for user jconstant
Traceback (most recent call last):
  File "C:\SVN\src-branch-1.8.x-2\win-tests.py", line 736, in <module>
    http_bulk_updates)
  File "C:\SVN\src-branch-1.8.x-2\win-tests.py", line 498, in __init__
    self._create_dontdothat_file()
  File "C:\SVN\src-branch-1.8.x-2\win-tests.py", line 603, in 
_create_dontdothat_file
    fp = open(self.dontdothat_file, 'w')
IOError: [Errno 2] No such file or directory: 
'C:\\SVN\\src-branch-1.8.x-2\\Release\\subversion\\tests\\cmdline\\
  svn-test-work\\dontdothat'
Httpd.stop_daemon not implemented

* win-tests.py
  (Httpd._create_dontdothat_file): Don't assume the 'svn-test-work' directory
   already exists, it won't if you are running the tests for the first time
   in a given environment.

Modified:
    subversion/trunk/win-tests.py

Modified: subversion/trunk/win-tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/win-tests.py?rev=1490679&r1=1490678&r2=1490679&view=diff
==============================================================================
--- subversion/trunk/win-tests.py (original)
+++ subversion/trunk/win-tests.py Fri Jun  7 15:18:59 2013
@@ -592,6 +592,12 @@ class Httpd:
 
   def _create_dontdothat_file(self):
     "Create empty mime.types file"
+    # If the tests have not previously been run or were cleaned
+    # up, then 'svn-test-work' does not exist yet.
+    parent_dir = os.path.dirname(self.dontdothat_file)
+    if not os.path.exists(parent_dir):
+      os.makedirs(parent_dir)
+
     fp = open(self.dontdothat_file, 'w')
     fp.write('[recursive-actions]\n')
     fp.write('/ = deny\n')