#6861: allow users to test Sage script using system-wide Sage installation
-------------------------+--------------------------------------------------
Reporter: mvngu | Owner: tbd
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.1.2
Component: doctest | Keywords:
Reviewer: | Author:
Merged: |
-------------------------+--------------------------------------------------
At least in Sage 4.1.1, a regular user cannot run tests on their own Sage
scripts using a system-wide installation of Sage. Doing so would result in
a permission error:
{{{
[mv...@mod mvngu]$ cat demo.sage
print 2
[mv...@mod mvngu]$ sage -t demo.sage
Traceback (most recent call last):
File "/usr/local/sage/local/bin/sage-test", line 49, in <module>
os.makedirs(TMP)
File "/usr/local/sage/local/lib/python/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/sage/tmp/tmp'
}}}
That is due to the testing script writing temporary data to a temporary
directory under the system-wide Sage installation. A work around is to
have one's own local installation of Sage under one's home directory. But
it would be nice if the test script would write temporary data to the
user's `DOT_SAGE` directory, i.e. `$HOME/.sage`. This problem was reported
at this [http://groups.google.com/group/sage-
support/browse_thread/thread/af6d95445f76cbe9 sage-support] thread.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6861>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---