# HG changeset patch
# User J. H. Palmieri <palmieri@math.washington.edu>
# Date 1333486085 25200
# Node ID b5286c566dbd930ed511f7f71718088366c6269b
# Parent 7d84a793c1e5aca967f3c22a19ea5c10a9968367
Do not create the directory SAGE_TESTDIR/tmp/
because all doctesting actually takes place in
SAGE_TESTDIR: the subdirectory tmp is not used.
diff --git a/sage-test b/sage-test
a
|
b
|
except KeyError: |
32 | 32 | # tempfile.gettempdir()? |
33 | 33 | if 'SAGE_TESTDIR' not in os.environ: |
34 | 34 | os.environ['SAGE_TESTDIR'] = os.path.join(SAGE_ROOT, "tmp") |
35 | | TMP = os.path.join(os.environ['SAGE_TESTDIR'], "tmp") |
| 35 | SAGE_TESTDIR = os.environ['SAGE_TESTDIR'] |
36 | 36 | try: |
37 | | os.makedirs(TMP) |
| 37 | os.makedirs(SAGE_TESTDIR) |
38 | 38 | except OSError: |
39 | | if not os.path.isdir(TMP): |
| 39 | if not os.path.isdir(SAGE_TESTDIR): |
40 | 40 | raise |
41 | 41 | |
42 | 42 | def sage_test_command(f): |
… |
… |
def test(F, cmd): |
88 | 88 | failed.append(sage_test_command(F)) |
89 | 89 | elif err != 0: |
90 | 90 | failed.append(sage_test_command(F)) |
91 | | os.system("mv -f __test* %s 2>/dev/null"%(TMP)) |
92 | 91 | t = time.time() - t |
93 | 92 | print "\t [%.1f s]" % t |
94 | 93 | if XML_RESULTS: |