app-metrics/chrony_exporter: fix tests

Disable the race detector for tests, which are all simple
single-threaded input/output verification.

Closes: https://bugs.gentoo.org/935442
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Closes: https://github.com/gentoo/gentoo/pull/37424
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Holger Hoffstätte
2024-07-04 10:57:56 +02:00
committed by Sam James
parent 9fbc8ca585
commit 2d7392d44f

View File

@@ -20,6 +20,12 @@ DEPEND="acct-group/chrony_exporter
BDEPEND="dev-util/promu"
src_prepare() {
default
# No need to enable the race detector for tests (#935442)
sed -i -e '/test-flags := -race/d' Makefile.common || die
}
src_compile() {
promu build -v --cgo --prefix bin || die
}