test-execute: unset $HOME before testing
Otherwise, test for %h specifier may fail. Fixes #11609.
This commit is contained in:
committed by
Lennart Poettering
parent
118dccc948
commit
3285320786
@@ -770,6 +770,7 @@ int main(int argc, char *argv[]) {
|
||||
(void) unsetenv("USER");
|
||||
(void) unsetenv("LOGNAME");
|
||||
(void) unsetenv("SHELL");
|
||||
(void) unsetenv("HOME");
|
||||
|
||||
can_unshare = have_namespaces();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user