#14307: The new doctesting framework doesn't like being run with nohup
-----------------------+----------------------------------------------------
Reporter: fbissey | Owner: mvngu
Type: defect | Status: new
Priority: major | Milestone: sage-5.9
Component: doctest | Keywords:
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
-----------------------+----------------------------------------------------
When run inside nohup test are failing to run with the new doctesting
framework in 5.9.beta0. An example
{{{
fbissey@QCD-nzi3 /home/work/fbissey/sandbox/sage-5.9.beta0 $ ./sage -t
--long "devel/sage-main/sage/misc/inline_fortran.py"
Running doctests with ID 2013-03-19-22-26-09-85e3b5eb.
Doctesting 1 file.
sage -t --long devel/sage-main/sage/misc/inline_fortran.py
[10 tests, 1.1 s]
----------------------------------------------------------------------
All tests passed!
----------------------------------------------------------------------
Total time for all tests: 1.1 seconds
cpu time: 0.1 seconds
cumulative wall time: 1.1 seconds
}}}
But when the same thing is run with nohup
{{{
nohup ./sage -t --long "devel/sage-main/sage/misc/inline_fortran.py" &
}}}
The output is
{{{
Running doctests with ID 2013-03-19-22-26-21-d52d31ab.
Doctesting 1 file.
sage -t --long devel/sage-main/sage/misc/inline_fortran.py
Process DocTestWorker-1:
Traceback (most recent call last):
File
"/home/work/fbissey/sandbox/sage-5.9.beta0/local/lib/python/multiprocessing/process.py",
l
ine 258, in _bootstrap
self.run()
File "/home/work/fbissey/sandbox/sage-5.9.beta0/local/lib/python2.7
/site-packages/sage/doctest/
forker.py", line 1655, in run
sys.stdin = os.fdopen(0, "r")
OSError: [Errno 22] Invalid argument
Bad exit: 1
**********************************************************************
Tests run before process failed:
**********************************************************************
----------------------------------------------------------------------
sage -t --long devel/sage-main/sage/misc/inline_fortran.py # Bad exit: 1
----------------------------------------------------------------------
Total time for all tests: 0.0 seconds
cpu time: 0.0 seconds
cumulative wall time: 0.0 seconds
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14307>
Sage <http://www.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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.