From patchwork Fri Sep 20 06:01:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1987654 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=mFH8udrB; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X922G4zlTz1y1t for ; Fri, 20 Sep 2024 16:06:14 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F0A668934E; Fri, 20 Sep 2024 08:03:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="mFH8udrB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AC3128934E; Fri, 20 Sep 2024 08:03:19 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) (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 C550F890EC for ; Fri, 20 Sep 2024 08:03:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ej1-x643.google.com with SMTP id a640c23a62f3a-a8d4093722bso225665466b.0 for ; Thu, 19 Sep 2024 23:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726812197; x=1727416997; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GpGPzOOCYQ/vCo6VwUV8dBYiESDG7tZZGy/7UH0RUWU=; b=mFH8udrBY2AGWAzMLTXSr3RqronHiqh1II6aQgUL61cVpsWsW/rPhJHPeJ0js7gxix IfR6QGFRaGC5oP4QxTkFLtNwywFXJugpt3hvSrrgUogvrzgSe2OMfcrR3kefJNPO5CVC JpXm0eEZG1qpIC7TJN3dfUeYV6BuCAFzoHMb8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726812197; x=1727416997; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GpGPzOOCYQ/vCo6VwUV8dBYiESDG7tZZGy/7UH0RUWU=; b=OtiUoyeovkdR4TJsA78g20n3gXd8KSZYy86voj4SJrUOObal2QOXWrHmWQkohzd94T hOCR0ovnkP62du64QKH8DQHY/RtWZb8H3CJVdolck0Lq9ke/J3R4/ymRAutYDxL/Q1Vc sK8pldH2OcoMctDkaEprmoXNHyO4NpGXwPq4a2Aj6t1NZbg4tvOGcjMwlNiOtOpJ8JhE nExhwz4lGO5E7uBCDlZA75HeojjT/plgl+IL/YivSs0MhbESf7WgI80MF+o/hm91Z8O0 yJq0Q+I7Ms9xKqBUYo0oBvVjBp1FiAYa35AX/eokDgKkl/hTXMdsDTnjTnhtfS9cA8/X V0qA== X-Gm-Message-State: AOJu0YyBb3kYZmKFb6cKC/6n1VKVXgrGcZ5xMw24DVYQK4gKJUYOjc9c mn8kcTNj10LySOj0cBE8CiKHdUi1QePI668fJgLZHncsEb5haqxaBYBZ9YF1zwjYRlJaABHc167 Z8dxJLFs= X-Google-Smtp-Source: AGHT+IEljbTXPUFjcnhfSZ+8qlxAis3HsdUYrXVxAUP+m4fC8UwsQS6iHMc4Ff0Q9yaWZm/7gjFSGA== X-Received: by 2002:a17:907:c894:b0:a8a:822e:44c6 with SMTP id a640c23a62f3a-a90d55e1025mr132588966b.4.1726812197023; Thu, 19 Sep 2024 23:03:17 -0700 (PDT) Received: from chromium.org ([185.44.53.103]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90612df750sm796420666b.160.2024.09.19.23.03.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2024 23:03:16 -0700 (PDT) From: Simon Glass To: u-boot@lists.denx.de Cc: Tom Rini , Simon Glass Subject: [PATCH v6 17/19] test: Add a section for closing the connection Date: Fri, 20 Sep 2024 08:01:52 +0200 Message-ID: <20240920060158.106612-18-sjg@chromium.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240920060158.106612-1-sjg@chromium.org> References: <20240920060158.106612-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.8 at phobos.denx.de X-Virus-Status: Clean This can take a while and involve multiple steps (e.g. turning the board back off). Add a section for it and show the output. Signed-off-by: Simon Glass --- (no changes since v1) test/py/u_boot_console_base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/py/u_boot_console_base.py b/test/py/u_boot_console_base.py index f610fa9a6f8..b279d95dea0 100644 --- a/test/py/u_boot_console_base.py +++ b/test/py/u_boot_console_base.py @@ -183,7 +183,10 @@ class ConsoleBase(object): """ if self.p: - self.p.close() + self.log.start_section('Stopping U-Boot') + close_type = self.p.close() + self.log.info(f'Close type: {close_type}') + self.log.end_section('Stopping U-Boot') self.logstream.close() def set_lab_mode(self):