diff options
Diffstat (limited to 'test/testenv')
-rwxr-xr-x | test/testenv | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/testenv b/test/testenv index ca61225..11a46ee 100755 --- a/test/testenv +++ b/test/testenv @@ -92,6 +92,24 @@ fi exec /usr/bin/gpg-connect-agent "$@" eot + # Hack to work around ssh ignoring HOME and instead looking the homedir in NSS + install -Dm755 /dev/stdin "$destdir/usr/bin/ssh" <<-'eot' + #!/bin/bash + vars=( + TMPDIR + _HOME GNUPGHOME XDG_CACHE_HOME XDG_CONFIG_HOME + _PATH LIBRETOOLS_LIBDIR _librelib_conf_sh_sysconfdir _librelib_conf_sh_pkgconfdir + GPGKEY + ) + export _HOME="$HOME" + export _PATH="$PATH" + exec /usr/bin/ssh \ + -o SendEnv="${vars[*]}" \ + -o IdentityFile="$HOME/.ssh/id_rsa" \ + -o UserKnownHostsFile="$HOME/.ssh/known_hosts" \ + -F "$HOME/.ssh/config" \ + "$@" + eot # Run the tests command -- "$@" |