mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-18 07:19:01 -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:
parent
8c7d3519b3
commit
215e297f20
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user