Call ffc.main in regression and units tests instead of commandline ffc

Issue #126 resolved
Martin Sandve Alnæs created an issue

It's a fairly simple change to run ffc.main([args...]) instead of using subprocess, except I don't know off the top of my head how to best capture the output. Can probably register a logger to write to file instead of capturing stdout.

This will give a significant boost in regression test performance, as witnessed by similar change in dolfin generate-form-files.

Comments (10)

  1. Martin Sandve Alnæs reporter

    If we run via pytest, do we need to mess with capturing the output? py.test does that by default and just add -s to see it.

  2. Martin Sandve Alnæs reporter

    @johannes_ring progress on the output capture?

    (to others reading: his branch works but output filtering needed some more polish)

  3. Log in to comment