Opened 12 years ago

Last modified 11 years ago

#9739 closed defect

Handle duplicate file basenames when testing multiple files in parallel — at Initial Version

Reported by: mpatel Owned by: mvngu
Priority: blocker Milestone: sage-4.7.2
Component: doctest coverage Keywords: doctest scripts race condition unique filenames ptestlong -tp
Cc: drkirkby, jhpalmieri, leif, robertwb, jdemeyer Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

When we test

/path/to/foo.py

sage-doctest writes

SAGE_TESTDIR/.doctest_foo.py

runs the new file through python, and deletes it. This can cause collisions when we test in parallel multiple files with the same basename, e.g., __init__, all, misc, conf, constructor, morphism, index, tests, homset, element, twist, tutorial, sagetex, crystals, cartesian_product, template, ring, etc.

There's a similar problem with testing non-library files, which sage-doctest first effectively copies to SAGE_TESTDIR.

See sage-devel for background.

Change History (0)

Note: See TracTickets for help on using tickets.