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 committed by Natanael Copa
parent 59be83ca19
commit 2fbfb5e700
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

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