diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-10-02 21:10:15 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-10-02 23:27:35 -0400 |
commit | d110b58ca14705db49919963624c7cfda045c998 (patch) | |
tree | 65c7849ca76b2d052c7d0660de56f2f1ec1b205d /test/testenv | |
parent | b8b344d1ba86c30c4fd452b40a3ae326634e8082 (diff) |
test: librerelease: Add tests for the actual run
https://labs.parabola.nu/issues/1411
https://labs.parabola.nu/issues/1412
I have verified that the test fails with commit
0b8606e0cd0e1aedfe222d4d6603c4986aacb7b5 ("librerelease: Fix rmdir
failing") reverted.
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 -- "$@" |