diff --git a/tests/Makefile b/tests/Makefile index 4b2e1bbea9a8cf932be354decdfd71cbea1b01eb..2ea54fcf2f6c18212bbdc14bae7b879a7d85c62b 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -187,7 +187,8 @@ check-qtest-xtensaeb-y = $(check-qtest-xtensa-y) # qom-test works for all sysemu architectures: $(foreach target,$(SYSEMU_TARGET_LIST), \ - $(eval check-qtest-$(target)-y += tests/qom-test$(EXESUF))) + $(if $(findstring tests/qom-test$(EXESUF), $(check-qtest-$(target)-y)),, \ + $(eval check-qtest-$(target)-y += tests/qom-test$(EXESUF)))) check-qapi-schema-y := $(addprefix tests/qapi-schema/, \ comments.json empty.json funny-char.json indented-expr.json \