]> git.proxmox.com Git - mirror_qemu.git/commit
tests:ipmi: Fix IPMI BT tests
authorCorey Minyard <cminyard@mvista.com>
Thu, 27 Jun 2019 22:42:25 +0000 (17:42 -0500)
committerCorey Minyard <cminyard@mvista.com>
Fri, 20 Sep 2019 19:08:10 +0000 (14:08 -0500)
commit77cd44b9ec57f69d8e99cdc8f3ea7af2ff96fc55
tree0b543ce59ce77f435237c06a037a8c76302ab7d9
parent8bc8af69123ee765fe4f9b835a99f6ef5d693973
tests:ipmi: Fix IPMI BT tests

The IPMI BT tests had a race condition, if it receive an IPMI command
to enable interrupt, it would write the message to enable interrupts
after it wrote the command response.  So the test code could
receive the command response and issue the next command before the
device handled the interrupt enable command, and thus no interrupt.

So send the message to enable interrupt before the command response.

Also add some sleeps to give qemu time to handle responses, there was
no delay before, and it could result in an invalid timeout.

And re-enable the tests, as hopefully they are fixed now.

Note that I was unable to reproduce this even with the instructions
Peter gave me, but hopefully this fixes the issue.

Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
tests/Makefile.include
tests/ipmi-bt-test.c