mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
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:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user