tests: fix with changed ABUILD_USERDIR

The test suite expects ABUILD_USERDIR to be "$HOME"/.abuild but that
could be overwritten in ABUILD_CONF. So use the fixed value instead of
relying on the default.
This commit is contained in:
Sertonix 2024-04-29 14:27:59 +02:00
parent a4dc880712
commit d65110ba9d
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ init_tests \
abuild_keygen_kernel \
export ABUILD_SHAREDIR="$SRCDIR"/..
export ABUILD_USERDIR="$HOME"/.abuild
export GIT=false
export FAKEKEY="$SRCDIR/testdata/abuild.key"
export FAKEKEYPUB="$SRCDIR/testdata/abuild.key.pub"

View File

@ -12,6 +12,7 @@ init_tests \
abuild_sign_owner
export ABUILD_SHAREDIR="$(atf_get_srcdir)/.."
export ABUILD_USERDIR="$HOME"/.abuild
init_keys() {
cp -ra "$(atf_get_srcdir)"/testdata/.abuild "$PWD"