The functional tests temporary directoy (containing the logs in case of
a test failure) is currently created using the python tempfile
library. This can cause issues on some systems where /tmp mounted on
RAM and is not large enough to handle the large files produced during
the tests. This issue has been raised in D4927.
This diff moves the temp directory to <build_dir>/test/functional
which should avoid the issue. It is always possible to change this
behavior by passing --tmpdirprefix on the command line.