qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

tests: Inject test name also when the test fails

If a test is unsuccessful, the result is "not ok", which does not match
the regex because it includes a space.

This regex matches both "ok" and "not ok".

Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com>
Message-Id: <20200628213046.2028271-1-hskinnemoen@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

Havard Skinnemoen and committed by
Paolo Bonzini
3bcb5840 a2d57703

+1 -1
+1 -1
tests/Makefile.include
··· 637 637 { export MALLOC_PERTURB_=$${MALLOC_PERTURB_:-$$(( $${RANDOM:-0} % 255 + 1))} $2; \ 638 638 $(foreach COMMAND, $1, \ 639 639 $(COMMAND) -m=$(SPEED) -k --tap < /dev/null \ 640 - | sed "s/^[a-z][a-z]* [0-9]* /&$(notdir $(COMMAND)) /" || true; ) } \ 640 + | sed "s/^\(not \)\?ok [0-9]* /&$(notdir $(COMMAND)) /" || true; ) } \ 641 641 | ./scripts/tap-merge.pl | tee "$@" \ 642 642 | ./scripts/tap-driver.pl $(if $(V),, --show-failures-only), \ 643 643 "TAP","$@")