#9739: Handle duplicate file basenames when testing multiple files in parallel
-------------------------------+--------------------------------------------
   Reporter:  mpatel           |          Owner:  mvngu          
       Type:  defect           |         Status:  needs_work     
   Priority:  critical         |      Milestone:  sage-4.7.1     
  Component:  doctest          |       Keywords:  doctest scripts
Work_issues:                   |       Upstream:  N/A            
   Reviewer:  Robert Bradshaw  |         Author:  Mitesh Patel   
     Merged:                   |   Dependencies:                 
-------------------------------+--------------------------------------------

Comment(by leif):

 Replying to [comment:53 jhpalmieri]:
 > I was envisioning patching sage-doctest, since that's what copies the
 file being tested to SAGE_TESTDIR (and later deletes it), and it gets run
 by "sage -t ...", "sage -tp ...", etc.   Running "sage -tp DIR" also uses
 a different PID for each execution of sage-doctest.

 I would simply pass `sage-doctest` the already created directory (either
 as a parameter, or simply in the environment variable which it already
 uses anyway).

 Creating the directory inside `sage-doctest` doesn't make any sense, since
 '''all''' instances would attempt to create it. (You can or could use
 `os.getppid()` though.)


 The whole collection of doctest scripts needs an overhaul (or redesign) in
 the long run...

 P.S.: We can use `tempfile.gettempdir()` in case `SAGE_TESTDIR` isn't set
 if that makes you happy.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9739#comment:54>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to