]> git.proxmox.com Git - mirror_qemu.git/commit
tests/migration-test: Silence the kvm_hv message by default
authorThomas Huth <thuth@redhat.com>
Thu, 2 Aug 2018 09:49:36 +0000 (11:49 +0200)
committerJuan Quintela <quintela@redhat.com>
Wed, 22 Aug 2018 10:15:33 +0000 (12:15 +0200)
commitc50055ae7c0684edc6f939579f95ea290363b58f
treee9322d16e7aca259fa1bd2aea4248be7d8547464
parent54db882f073a015ba3e198e7e57eb91b1e72e63d
tests/migration-test: Silence the kvm_hv message by default

When running "make check" on a non-POWER host, there is currently an ugly
line in the output 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.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
tests/migration-test.c