dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #10142
Re: buildbot failure in linux_64
Ilmar Wilbers <ilmarw@xxxxxxxxx> writes:
> I'm actually not quite sure, probably. There are .py files and .xml
> files. One of the .py files typically looks like:
> ilmarw@potassium:/tmp$ less filezcQEji.py
> try:
> from dolfin import *
>
> mesh = Mesh("/tmp/file6OyIfl.xml")
> f = MeshFunction("uint", mesh, "/tmp/file6OyIfl.xml")
> plot(f)
> interactive()
> except:
> import sys
> sys.exit(1)
grep of (old) sources suggests plot/plot.cpp is to blame. It generates a python
script fileXXX.py and data file fileXXX.xml, then runs the .py.
The generated .py could (should) clean up by removing the .xml and itself
before finishing:
+ fprintf(script_file, "exitcode = 0\n");
fprintf(script_file, "try:\n");
fprintf(script_file, " from dolfin import *\n\n");
...
fprintf(script_file, " interactive()\n");
fprintf(script_file, "except:\n");
- fprintf(script_file, " import sys\n");
- fprintf(script_file, " sys.exit(1)\n");
+ fprintf(script_file, " exitcode = 1\n");
+ fprintf(script_file, "import os, sys\n");
+ fprintf(script_file, "os.remove('%s')\n", data_name.c_str());
+ fprintf(script_file, "os.remove('%s')\n", script_name.c_str());
+ fprintf(script_file, "sys.exit(exitcode)\n");
I don't know about the tmpXXX.inp files, they don't seem to be generated by
dolfin and are not world-readable on potassium so I don't know what they
contain. Maybe something generated by the build tools, scons or swig perhaps?
-j.
Follow ups
References