games-emulation/dosbox-x: Use xdg-utils.eclass to set XDG_CONFIG_HOME

Suggested-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Fixes: 08f413c38 (games-emulation/dosbox-x: Set XDG_CONFIG_HOME for tests)
Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
This commit is contained in:
Yuan Liao 2024-12-15 10:53:16 -05:00
parent 8c7d3519b3
commit 215e297f20
No known key found for this signature in database
GPG Key ID: 5A088BB1563212A9
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ src_compile() {
}
src_test() {
local -x XDG_CONFIG_HOME="${T}" # Tests may create configuration files
xdg_environment_reset # Tests may create config files in XDG_CONFIG_HOME
set -- src/dosbox-x -tests
echo "${@}" >&2
"${@}" || die "Unit tests failed"

View File

@ -151,7 +151,7 @@ src_compile() {
}
src_test() {
local -x XDG_CONFIG_HOME="${T}" # Tests may create configuration files
xdg_environment_reset # Tests may create config files in XDG_CONFIG_HOME
set -- src/dosbox-x -tests
echo "${@}" >&2
"${@}" || die "Unit tests failed"