From patchwork Wed Nov 14 05:14:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 997466 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42vt2x20m8z9s7h for ; Wed, 14 Nov 2018 16:14:33 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="FzNQjB2s"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 42vt2w5SBVzF3Qb for ; Wed, 14 Nov 2018 16:14:32 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="FzNQjB2s"; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42vt2g1TNCzF3QQ for ; Wed, 14 Nov 2018 16:14:19 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="FzNQjB2s"; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 42vt2f3L6sz9s7h; Wed, 14 Nov 2018 16:14:18 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1542172458; bh=mKH7MSKWW1PCMA4EUvCMfKPtdrCNVB+IFnW7BrQ546I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FzNQjB2smNIyS6Icd+6U6A4GOveiRMFCI6hoGlsd8uJC32wbATilLBuuIdtxgNBSB FUr1HGGMOAeSKHibKZvt1HoEkscTIPis+PKkjpCGwMm2+7LS1nSLxdvtV1pQyE3TP7 VmhSnGyTofOHlA5Etpsa901fwS+PYXjqzK7/uN0z5gfaMn7rP/gV/g4HYbU2q7LPYR dkwk3pQ8mUdyFgDMIqiKbqTjjmVHelQfdXUncDFICbH367QqzH2Qq+L52JL3jCm9OL GikjF87CHxx59NfWNLjjGIeyOCRg5d4ovirZNEg79VkqHDlLdhBnW1TLI4i3FaGy7l b3a4xA1mM7NFw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Wed, 14 Nov 2018 16:14:07 +1100 Message-Id: <20181114051411.136488-2-amitay@ozlabs.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181114051411.136488-1-amitay@ozlabs.org> References: <20181114051411.136488-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH v2 1/5] tests: Fix the condition to check if bmc is up X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs Reviewed-by: Alistair Popple --- tests/test_hw_bmc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_hw_bmc.sh b/tests/test_hw_bmc.sh index 7054181..c65a630 100755 --- a/tests/test_hw_bmc.sh +++ b/tests/test_hw_bmc.sh @@ -62,15 +62,17 @@ do_skip () fi } + echo -n "Checking if the host is up... " output=$(test_wrapper /usr/sbin/obmcutil state | grep CurrentHostState) rc=$? if [ $rc -ne 0 ] || \ - [ "$output" != "xyz.openbmc_project.State.Host.HostState.Running" ] ; then + [ "$output" = "CurrentHostState : xyz.openbmc_project.State.Host.HostState.Running" ] ; then echo "yes" hw_state=1 else echo "no" + echo "$output" fi result_filter ()