Ticket #13147: trac_13681_root.patch

File trac_13681_root.patch, 714 bytes (added by vbraun, 9 years ago)

Initial patch

  • spkg/bin/sage-env

    # HG changeset patch
    # User Volker Braun <vbraun@stp.dias.ie>
    # Date 1351989122 14400
    # Node ID 7a6cbe962e3ae337236008a48d331f88c143fc61
    # Parent  b4b9d416c0d4a8f5d3570fc23ded08171f6030d3
    Include hostname/pid in SAGE_TESTDIR
    
    diff --git a/spkg/bin/sage-env b/spkg/bin/sage-env
    a b  
    339339# sage-test are written in Python, we can set it to
    340340# tempfile.gettempdir() there.
    341341if [ -z "$SAGE_TESTDIR" ]; then
    342     SAGE_TESTDIR="$DOT_SAGE"/tmp && export SAGE_TESTDIR
     342    hostname=`hostname | tr -- '-/\\\\' '___'`
     343    SAGE_TESTDIR="$DOT_SAGE/tmp/$hostname/$$" && export SAGE_TESTDIR
    343344fi
    344345
    345346# Use a matplotlib config directory specific to Sage and specific to