]> git.proxmox.com Git - mirror_qemu.git/commit
tests/migration-test: Silence the kvm_hv message by default
authorThomas Huth <thuth@redhat.com>
Thu, 16 Aug 2018 11:35:51 +0000 (13:35 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Aug 2018 11:32:50 +0000 (13:32 +0200)
commit880b169a45214b85cdde1d61386eaa85d6372296
tree709fe5c23afc3d64bc6f620bf73ae8499f1e390a
parent98a43bf0bbc69325eb753ddcfd9c2ab467c7ad73
tests/migration-test: Silence the kvm_hv message by default

When running "make check" on a non-POWER host, the output is quite
distorted like this:

  [...]
  GTESTER check-qtest-nios2
  GTESTER check-qtest-or1k
  GTESTER check-qtest-ppc64
Skipping test: kvm_hv not available Skipping test: kvm_hv not available Skipping test: kvm_hv not available Skipping test: kvm_hv not available   GTESTER check-qtest-ppcemb
  GTESTER check-qtest-ppc
  GTESTER check-qtest-riscv32
  GTESTER check-qtest-riscv64
  [...]

Move the check to the beginning of the main function instead, so that
we do not have to test the condition again and again for each test,
and better use g_test_message() instead of g_print() here, like it is
also done in ufd_version_check() already.

Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1534419358-10932-2-git-send-email-thuth@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/migration-test.c