From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fqbxZ-0006CB-9A for qemu-devel@nongnu.org; Fri, 17 Aug 2018 06:26:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fqbxW-0001CK-Hh for qemu-devel@nongnu.org; Fri, 17 Aug 2018 06:26:25 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:50684 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fqbxW-0001BC-Bi for qemu-devel@nongnu.org; Fri, 17 Aug 2018 06:26:22 -0400 From: Juan Quintela In-Reply-To: <1534419358-10932-2-git-send-email-thuth@redhat.com> (Thomas Huth's message of "Thu, 16 Aug 2018 13:35:51 +0200") References: <1534419358-10932-1-git-send-email-thuth@redhat.com> <1534419358-10932-2-git-send-email-thuth@redhat.com> Reply-To: quintela@redhat.com Date: Fri, 17 Aug 2018 12:26:10 +0200 Message-ID: <874lftwapp.fsf@trasno.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 1/8] tests/migration-test: Silence the kvm_hv message by default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: qemu-devel@nongnu.org, Markus Armbruster , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Eric Blake , "Dr. David Alan Gilbert" , "Michael S. Tsirkin" , Paolo Bonzini , Laurent Vivier Thomas Huth wrote: > 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 > Signed-off-by: Thomas Huth Reviewed-by: Juan Quintela