From patchwork Fri Jul 2 16:31:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Elisei X-Patchwork-Id: 1500184 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=kvm-ppc-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4GGgYV183kz9sXN for ; Sat, 3 Jul 2021 02:30:38 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230018AbhGBQdJ (ORCPT ); Fri, 2 Jul 2021 12:33:09 -0400 Received: from foss.arm.com ([217.140.110.172]:50576 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbhGBQdJ (ORCPT ); Fri, 2 Jul 2021 12:33:09 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0F76011B3; Fri, 2 Jul 2021 09:30:37 -0700 (PDT) Received: from monolith.cable.virginm.net (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B29973F5A1; Fri, 2 Jul 2021 09:30:34 -0700 (PDT) From: Alexandru Elisei To: drjones@redhat.com, thuth@redhat.com, pbonzini@redhat.com, lvivier@redhat.com, kvm-ppc@vger.kernel.org, david@redhat.com, frankja@linux.ibm.com, cohuck@redhat.com, imbrenda@linux.ibm.com, linux-s390@vger.kernel.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu Cc: andre.przywara@arm.com, maz@kernel.org, vivek.gautam@arm.com Subject: [kvm-unit-tests RFC PATCH 2/5] scripts: Rename run_qemu_status -> run_test_status Date: Fri, 2 Jul 2021 17:31:19 +0100 Message-Id: <20210702163122.96110-3-alexandru.elisei@arm.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210702163122.96110-1-alexandru.elisei@arm.com> References: <20210702163122.96110-1-alexandru.elisei@arm.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm-ppc@vger.kernel.org kvm-unit-tests will get support for running tests automatically under kvmtool, rename the function to make it more generic. Signed-off-by: Alexandru Elisei Reviewed-by: Andrew Jones Reviewed-by: Thomas Huth --- scripts/arch-run.bash | 2 +- powerpc/run | 2 +- s390x/run | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/arch-run.bash b/scripts/arch-run.bash index 5997e384019b..8ceed53ed7f8 100644 --- a/scripts/arch-run.bash +++ b/scripts/arch-run.bash @@ -69,7 +69,7 @@ run_qemu () return $ret } -run_qemu_status () +run_test_status () { local stdout ret diff --git a/powerpc/run b/powerpc/run index 597ab96ed8a8..312576006504 100755 --- a/powerpc/run +++ b/powerpc/run @@ -31,4 +31,4 @@ command="$(migration_cmd) $(timeout_cmd) $command" # to fixup the fixup below by parsing the true exit code from the output. # The second fixup is also a FIXME, because once we add chr-testdev # support for powerpc, we won't need the second fixup. -run_qemu_status $command "$@" +run_test_status $command "$@" diff --git a/s390x/run b/s390x/run index c615caa1b772..5a4bb3bda805 100755 --- a/s390x/run +++ b/s390x/run @@ -28,4 +28,4 @@ command+=" -kernel" command="$(timeout_cmd) $command" # We return the exit code via stdout, not via the QEMU return code -run_qemu_status $command "$@" +run_test_status $command "$@"