Skip to content

Export variable in resolver system test

Nicki Křížek requested to merge tkrizek/resolver-test-export-home into main

Variable assignment when calling subroutines might not be portable. Notably, it doesn't work with FreeBSD shell, where the value of HOME would be ignored in this case.

Since the commands are already executed in a subshell, export the HOME variable to ensure it is properly handled in all shells.


In the way the tests are currently executed, this issue doesn't manifest in our CI for some reason. However, the issue did pop up once I started to refactor the environment variable handling.

Merge request reports