From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 622CFC4708A for ; Thu, 27 May 2021 08:33:20 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 42A9E61360 for ; Thu, 27 May 2021 08:33:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 42A9E61360 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EEBB1804B9; Thu, 27 May 2021 10:33:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sV/6dURO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5E31982AE5; Thu, 27 May 2021 10:33:15 +0200 (CEST) Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 803EF804B9 for ; Thu, 27 May 2021 10:33:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=opensource.kab@gmail.com Received: by mail-pf1-x42c.google.com with SMTP id e17so26186pfl.5 for ; Thu, 27 May 2021 01:33:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=vDYNxhbrdOnDBWlUTLJANycjaCelG3mCpMmsXCi1fqM=; b=sV/6dUROmriq66QsY1Eca4r5hKckpVxJ5Xe8HDq9g5GJu0pcAe+zSYjVL1kDcBnGki MkbEUasFb0acGRAqnE1L2J5sy9lVpFcWL3UTN9R+7MLvS9Vr9ejdQ+yM0BoUkRRUXpvR 1hlctcGBPxoqacqh2PNknf12C6po/Utehst89d9pAu0/T9RsOEINMIk4unxLat8Dk649 mhX64JpjrC5pipp+PVC+0/e4p4vEOk2viFmaZdJR579QLkMVKkR/Jm2+KfxuS42NA8mA 7IKJdh6AOgrXWF4rchT2OlNPq7Fl75YA5dZM1yOCp0/l7IQGl8UMH9fwT2J8+Ws0KFz/ fZ1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vDYNxhbrdOnDBWlUTLJANycjaCelG3mCpMmsXCi1fqM=; b=DUyVqSLo/Zryo7KHDM9rYYqkEIB4pM8YdHDHkYiI4zI+noQx4wyLTTm9Bka5iRfQaa Q5TSGrCghz2k3a+hL3W6Cr9DCA0EraFfkmyFNy8Y8eYWJHXddWygLyNkwmymL6DCrF6K wW2DM0puUts02wH7dAf4zOQ48GtPJNDsNEpdSHtzndzhVNeNfdPsYXur6r5SY8cH4nDr S+SnnUS7j0lbuzVdd5aoZc8aFO/gCyeKWoPpkFlLkR+hU918DvjY1HzfQghXCvMmsDn4 0hw0rGPHTPSOS0foL6BzS0/dDDIRpRz7FtgVeoSrn5l25gn2mR+EcRVjGWEsE/53L0IR veLw== X-Gm-Message-State: AOAM530hiVwR0cfupjelGPDExLm+q+Z7nOlvzVcMk0HQuQ3ldmwCjQ4c h8qmYhEzJJ6APY4hL5gOZ91dAR/G93UfG6If X-Google-Smtp-Source: ABdhPJxRZb7+byeeV7QyuxFl/nQHPbeAPZSJOa4n71cwVFMJZ9UZIkuTD4P1+T+77Zv8WggT8EMupg== X-Received: by 2002:a05:6a00:d41:b029:2db:1549:219e with SMTP id n1-20020a056a000d41b02902db1549219emr2267623pfv.71.1622104390622; Thu, 27 May 2021 01:33:10 -0700 (PDT) Received: from localhost.localdomain ([49.204.180.30]) by smtp.gmail.com with ESMTPSA id f80sm1259345pfa.160.2021.05.27.01.33.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 May 2021 01:33:10 -0700 (PDT) From: opensource.kab@gmail.com To: u-boot@lists.denx.de Cc: wd@denx.de, Adarsh Babu Kalepalli , Heinrich Schuchardt , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Simon Glass , Stephen Warren Subject: [PATCH] pytest:Shutdown power-supply to board after the pytest execution Date: Thu, 27 May 2021 14:03:05 +0530 Message-Id: <20210527083305.6725-1-opensource.kab@gmail.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean From: Adarsh Babu Kalepalli After executing the test-cases from pytest ,the board is still powered.Shutting down the board power supply at this point ,would keep the board safe. Signed-off-by: Adarsh Babu Kalepalli --- test/py/conftest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/py/conftest.py b/test/py/conftest.py index 11a3f307ea..077358a37f 100644 --- a/test/py/conftest.py +++ b/test/py/conftest.py @@ -406,6 +406,13 @@ def cleanup(): """ if console: + if ((console.config.board_type != "sandbox") and (console.config.board_type != "sandbox64")): + args = [console.config.board_type, console.config.board_identity] + console.log.action('Powering Down the board') + cmd = ['u-boot-test-power-off'] + args + runner = console.log.get_runner(cmd[0], sys.stdout) + runner.run(cmd) + runner.close() console.close() if log: with log.section('Status Report', 'status_report'): -- 2.17.1