summaryrefslogtreecommitdiff
path: root/test/testenv
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-09-29 19:12:11 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-09-30 15:37:15 -0400
commit84a73785021d83078ed722942cc7aac377deb13b (patch)
tree901db718df795efc299fa2808805c3f7a3ac94a1 /test/testenv
parent88d808002dcbcff20847f6c744345058723e08d2 (diff)
test: Have $HOME be owned by test-common.sh instead of testenv
Diffstat (limited to 'test/testenv')
-rwxr-xr-xtest/testenv18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/testenv b/test/testenv
index a61fd24..f6c19d5 100755
--- a/test/testenv
+++ b/test/testenv
@@ -55,27 +55,9 @@
# Set up the environment
export PATH="$destdir/usr/bin:$PATH"
export LIBRETOOLS_LIBDIR="$destdir/usr/lib/libretools"
- export HOME=$TMPDIR/home
- export GNUPGHOME="$HOME/.gnupg"
- export XDG_CACHE_HOME="$HOME/.cache"
- export XDG_CONFIG_HOME="$HOME/.config"
export _librelib_conf_sh_sysconfdir="$destdir/etc"
export _librelib_conf_sh_pkgconfdir="$destdir/etc/libretools.d"
- mkdir -p -- "$GNUPGHOME"
- chmod 700 -- "$GNUPGHOME"
- unset GPGKEY
- gpg --quiet --no-tty --batch --gen-key <<-eot
- Key-Type: default
- Key-Usage: sign
- Name-Real: Bob Tester
- Name-Email: tester@localhost
- Expire-Date: 0
- %no-protection
- %commit
- eot
- export GPGKEY="$(gpg --quiet --list-secret-keys --with-colons | awk -F: '/^sec:/{print substr($5,9)}')"
-
# Hack to respect our variables in sudo
_sudo() {
local vars=(TMPDIR PATH LIBRETOOLS_LIBDIR GNUPGHOME XDG_CACHE_HOME XDG_CONFIG_HOME _librelib_conf_sh_sysconfdir GPGKEY)