Ticket #8641: trac_8641-part2.patch

File trac_8641-part2.patch, 1.3 KB (added by John Palmieri, 13 years ago)

apply on top of trac_8641.patch

  • sage-test

    # HG changeset patch
    # User J. H. Palmieri <palmieri@math.washington.edu>
    # Date 1271213996 25200
    # Node ID a09ca7b157dd6f8ee99f016b57dcc95ee72f88a3
    # Parent  23987d4f2edc441c17ce73f3b643861dee21c96d
    trac 8641: add-on patch
    
    diff -r 23987d4f2edc -r a09ca7b157dd sage-test
    a b  
    8080    t = time.time()
    8181    if skip(F):
    8282        return 0
    83     err = call([os.path.join(SAGE_ROOT, 'local', 'bin', 'sage-%s' % cmd), F])
     83    s = os.path.join(SAGE_ROOT, 'local', 'bin', 'sage-%s' % cmd) + ' "%s"' % F
     84    err = call(s, shell=True)
    8485
    8586    # Check the process exit code that sage-doctest returns
    8687
     
    119120    base, ext = os.path.splitext(F)
    120121    err = 0
    121122    if ext in ['.py', '.spyx', '.pyx', '.tex', '.pxi', '.sage', '.rst']:
    122         err = err | test(F, 'doctest' + opts + extra_opts)
     123        err = err | test(F, 'doctest ' + opts + extra_opts)
    123124    elif os.path.isdir(F) and not (F[:1] == '.') \
    124125            and not '#' in F and not os.sep + 'notes' in F:
    125126        ld = os.listdir(F)
    126127        if not ('__nodoctest__' in ld):
    127128            for L in ld:
    128129                err = err | test_file(os.path.join(F, L))
    129     else:
    130         err = 0
    131130    return err
    132131
    133132files = argv[1:]