You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2010/11/09 22:47:45 UTC

svn commit: r1033248 - /subversion/trunk/subversion/tests/cmdline/svntest/main.py

Author: hwright
Date: Tue Nov  9 21:47:45 2010
New Revision: 1033248

URL: http://svn.apache.org/viewvc?rev=1033248&view=rev
Log:
Followup to r1033086, by fixing the running of individual tests directly.

* subversion/tests/cmdline/svntest/main.py:
  (run_one): If we weren't given a srcdir, just use the absolute path of the
    running program.

Modified:
    subversion/trunk/subversion/tests/cmdline/svntest/main.py

Modified: subversion/trunk/subversion/tests/cmdline/svntest/main.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/main.py?rev=1033248&r1=1033247&r2=1033248&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/main.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/main.py Tue Nov  9 21:47:45 2010
@@ -1115,8 +1115,12 @@ class TestSpawningThread(threading.Threa
       self.run_one(next_index)
 
   def run_one(self, index):
-    command = os.path.join(self.srcdir, 'subversion/tests/cmdline',
-                           sys.argv[0])
+    if self.srcdir:
+      command = os.path.join(self.srcdir, 'subversion/tests/cmdline',
+                             sys.argv[0])
+    else:
+      command = os.path.abspath(sys.argv[0])
+
     args = []
     args.append(str(index))
     args.append('-c')