pyclaw
pyclaw copied to clipboard
Test failing: p-system gauge test in parallel with Python 3
In the latest build we have a failure of one test, only for the parallel + Python 3.5 build. It is a test of gauge output; it seems that somehow the test is trying to read the file before it is written:
pyclaw.examples.psystem_2d.psystem_2d({'outdir': './_for_temp_pyclaw_test', 'tfinal': 1.0, 'cells_per_layer': 6, 'solver_type': 'classic'})
/home/travis/build/clawpack/pyclaw/src/pyclaw/examples/psystem_2d/test_2d_psystem.py:27:
UserWarning: loadtxt: Empty input file: "./_for_temp_pyclaw_test/_gauges/gauge11.75_11.75.txt"
test_gauge_data_io = np.loadtxt(gauge.name)
ERROR
Is this an issue with a race condition then?
That's my guess, but why is it suddenly failing now? I restarted the build a few times just in case it was a Travis hiccup, but it fails consistently.
I saw this the other day too and eventually got it to pass after restarting a few times. I guess we need to check to make sure that everything is done (maybe check for the file?) before moving on to the test.