#9739: Handle duplicate file basenames when testing multiple files in parallel
-------------------------------+--------------------------------------------
Reporter: mpatel | Owner: mvngu
Type: defect | Status: needs_work
Priority: blocker | Milestone: sage-4.6.1
Component: doctest | Keywords: doctest scripts
Author: Mitesh Patel | Upstream: N/A
Reviewer: Robert Bradshaw | Merged:
Work_issues: |
-------------------------------+--------------------------------------------
Comment(by drkirkby):
Using both a hostname and a PID should mean the filename is practically
unique if people test on more than one computer using a shared drive. I
don't think 'mktemp' will be unique on NFS shared drives, though the
probability of a collision would then be very small indeed. But adding a
hostname would reduce it even further.
But we need to be careful if using mktemp. Whilst many systems have it,
the implementation is not the same on every system. I know Solaris works a
bit different to Linux or OS X (I forget which). I know using something on
Solaris with mktemp which would not work with Linux or OS X. (I forget
which OS it was though). It seems HP-UX and Solaris differ too.
I would be very keen to use something that will work on AIX. There is a
chance of IBM donating a quad core 4.5 GHz machine to the Sage project
with AIX on it.
Anyway, whatever solution is used, I think it will be 1000x better than
the current solution, but personally I'd like to see something that's
unique to a machine and portable.
Dave
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9739#comment:30>
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.