specs: Move {database,lists_dir,listlogs_dir} to random path below /tmp
During debugging reproducible builds problems with reprotest in Debian, I've experienced multiple times that the build path was read only, and therefore the database as well. I've patched this in Debian to move the database into /tmp/schleuder-test
, but Holger, my sponsor, rejected this as this might lead to known tmpfile attacks. I'm still unsure if this is that relevant for a testsuite, but well... we've discussed this in the past in #154 (closed) already.
I'm able to take care of this, but I'm unsure what to do: Currently, the path is just read out of the config. Should the relevant code be extended to read an env var containing the path, for example. spec_helper
could then, before running the suite, set this.
But: Is this the way to go? Any opinion, feedback?