Mateusz Nowotyński <maxmati4@xxxxxxxxx> writes: [jc: I do not know why your reply had two blank lines for every line, but I reformatted them to make them repliable] > This is what we do currently but the problem with this solution is that > it breaks other software that also uses HOME as base path for their > data. For example asdf version manager. That sounds like another reason why you would want to redirect HOME to a stable and known directory constructed specifically for the use of your tests. Just like you do not want the behaviour of the tested program getting affected by random settings the users, who are running your tests, might have in their $HOME/.gitconfig, random settings for "asdf version manager" (whatever it is) the users happen to have in their $HOME directory would also have undesirable side effects to your tests, no?