Message ID | 20220422154650.160435-4-philippe.reynes@softathome.com |
---|---|
State | Accepted |
Commit | b6b6a906469ab11f460b493a5ecca8160393bfad |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com header.a=rsa-sha256 header.s=selector1-softathome1-onmicrosoft-com header.b=wj0OWdxT; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KlJgr2RHhz9s2R for <incoming@patchwork.ozlabs.org>; Sat, 23 Apr 2022 01:47:20 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5437283D6D; Fri, 22 Apr 2022 17:47:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=softathome.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=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com header.b="wj0OWdxT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0DFAC82A3A; Fri, 22 Apr 2022 17:46:59 +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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from FRA01-PR2-obe.outbound.protection.outlook.com (mail-pr2fra01on061f.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e18::61f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 351E483D7E for <u-boot@lists.denx.de>; Fri, 22 Apr 2022 17:46:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=philippe.reynes@softathome.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CVIlkfwtm6B6bJ0kXVyzF0l2jDf1vz4N989btnVdCQjyaLCEK3AsZEAuKmYAMhaBefLfG2x9xrjE2MOLseCt5hxIduPMl86E5hPYDweLnyAoou9OUldJPvVNLlWGFUOetfkvt17Nm94Eo8oIchRf+mn4y9YTLSc/kycHwtv1PGb0/6cJ9Ok3brfC95JCjxnRVhL+FepkgK4vf0x4DgiO0GLk8atqQ2RtFMGJIEX5mo/9gJTO9DmQGwt+7SPoQfbbiag2mIxpDbZUKuSFZebAYkuiU64Db4jgGdOirBzZI7N99KA/DPgq8bcv255VGJTKek1iWJgBcxoUDmuoSNbVCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=e9cWyJkPxL6OQRgmvxj0lDfLL0YTeER4L5kyjEeg1+o=; b=frEuUuMa47gACNV2i7rFCNANuV/rQ5cdt4a3zX1kKY+MA0YWYospzGFqepO3f495j8HmMUEvG14XOUJ2X6ox0p90sAHkzORItEf0yiVhGhUtNARIsDhtqOT46z44xmwSm1zt7gOq1uNl02BEAU/gcKLm4KUVadpP8TuyaB9SXbDFzQ3X3r0CGiPA7sVF8ooE1XZ+azdECISjEWm0f0vMLp9laFfp/RsLTVTOvXrwnoC9s8fDAX78+GBNSFsvSPw7417UbaAyavOMRaw3Qo/kOtdeAFfOTUqM49fHItiMubmPCvnNdCP1EXpuNr1zMx7RUqrrYTWc0JN/H4AjzJKEtw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.6.166.170) smtp.rcpttodomain=chromium.org smtp.mailfrom=softathome.com; dmarc=bestguesspass action=none header.from=softathome.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=softathome1.onmicrosoft.com; s=selector1-softathome1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e9cWyJkPxL6OQRgmvxj0lDfLL0YTeER4L5kyjEeg1+o=; b=wj0OWdxTmHfA/h/C9Uc+LdUAuDnyXTckDG7dDXumC1eb8GYdHDiWEwNH2sdPG4pM4XaVrURVSAVydkWJJhwbg9U32Cd0r5gW8wnHEP1KMFY+evCZktejd0jDcgq8s2Hn4IEAGvxDAfbfrYa5xQpPrrPntLsN6pObSvR2+Mqj5+7rj55lsgBMYCXnsItqkZrXcy+AhUxmXlk7AuklpBXZC8B3wnNSF/1NYG6BVOQjecIiX84Kka13K+mXY7GL47L2TmuSusLGg/D0lZzOOZyWbn1DMp6LqdvahGKvAotLetJ3NxjbMq36x/mw4yTbKV1/WL2XnabdywxjepbF3VmlpQ== Received: from PR0P264CA0162.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1b::30) by PAYP264MB3382.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:117::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14; Fri, 22 Apr 2022 15:46:53 +0000 Received: from MR2FRA01FT005.eop-fra01.prod.protection.outlook.com (2603:10a6:100:1b:cafe::3b) by PR0P264CA0162.outlook.office365.com (2603:10a6:100:1b::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14 via Frontend Transport; Fri, 22 Apr 2022 15:46:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.6.166.170) smtp.mailfrom=softathome.com; dkim=none (message not signed) header.d=none;dmarc=bestguesspass action=none header.from=softathome.com; Received-SPF: Pass (protection.outlook.com: domain of softathome.com designates 149.6.166.170 as permitted sender) receiver=protection.outlook.com; client-ip=149.6.166.170; helo=proxy.softathome.com; Received: from proxy.softathome.com (149.6.166.170) by MR2FRA01FT005.mail.protection.outlook.com (10.152.50.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14 via Frontend Transport; Fri, 22 Apr 2022 15:46:53 +0000 Received: from sah1lpt571.softathome.com (unknown [192.168.72.32]) by proxy.softathome.com (Postfix) with ESMTPSA id 233ED20116; Fri, 22 Apr 2022 17:46:53 +0200 (CEST) From: Philippe Reynes <philippe.reynes@softathome.com> To: sjg@chromium.org Cc: u-boot@lists.denx.de, Philippe Reynes <philippe.reynes@softathome.com> Subject: [PATCH 3/3] test: py: tests: test_gpt.py: add a simple test for the command gpt repair Date: Fri, 22 Apr 2022 17:46:50 +0200 Message-Id: <20220422154650.160435-4-philippe.reynes@softathome.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220422154650.160435-1-philippe.reynes@softathome.com> References: <20220422154650.160435-1-philippe.reynes@softathome.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 349f9148-0777-4280-bbea-08da247752c8 X-MS-TrafficTypeDiagnostic: PAYP264MB3382:EE_ X-Microsoft-Antispam-PRVS: <PAYP264MB3382EF2B2562CD4F08FE5B9A88F79@PAYP264MB3382.FRAP264.PROD.OUTLOOK.COM> X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IPDSB6HYwa0FLLO38dzf+fei+tNwo+GAkbeKC709dzDjKPu8cOuXN1+Ia+1h8xF8ZRLRk+1tDGZvWEXSrK2WRDdiZaGKilhvGVePkl4UpdULkkMptBETyXCoK5DErb+z2kyyfOCOKFE6KMeriX4qiL578wq7qrzNwCft3AAmORRpBCM83yOSKl++UashruT4p7dpUJgJUjlKcgID5aDYFa1W2GiVeXgfu2EylgkckwFmCzIp68tGjavE3EpYJhrcEro0WOrb8gFDVTatiRiR/kqYoemmIkuHpNAA68uBvtpjZLSIzBaqTEmXmUsYaFoDft/yE4ajagHtgRbaVaApRcUYmLZzsWxrBLvslfXLJmH9C6VO2BGOYAXrm4PMldYU16HAIK2OMwAdEmRt+uMqtVLPuHjhjnGCRqJvOvI9OtnmpMzwBHv20RZnzv7b4ejr5uZOgNjLq+7zG7vWAQq24jwXQKIVGgnyXtf5pvcPwNgYVwegKjJbib5yYvsE56M3DbAh/fcqLwNHr9k/U5Dett4ktyfYZ968pIO4PYgMKx2QuGvZkxxbYShvEc8bhCyX9ocYF3AxKkA81ntzL7My3h4ZKvTHaXerp3Il92zSy5pagorJhUjKJUu+5l+e0Qzu+QJKWkeK9CIKOeXgE7nN/M/7gXhNUz9HxT7wcQ1NM0JZApSt+XIxMBrrHnBHXdRfMtDt5a4gHhJ3NnyD7xVhYA== X-Forefront-Antispam-Report: CIP:149.6.166.170; CTRY:FR; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:proxy.softathome.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(26005)(7696005)(6266002)(82310400005)(2616005)(47076005)(336012)(6916009)(70206006)(36756003)(508600001)(5660300002)(426003)(83380400001)(356005)(4326008)(70586007)(1076003)(6966003)(81166007)(86362001)(8936002)(44832011)(316002)(107886003)(36860700001)(186003)(40460700003)(8676002)(2906002)(82960400001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: softathome.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2022 15:46:53.4160 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 349f9148-0777-4280-bbea-08da247752c8 X-MS-Exchange-CrossTenant-Id: aa10e044-e405-4c10-8353-36b4d0cce511 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=aa10e044-e405-4c10-8353-36b4d0cce511; Ip=[149.6.166.170]; Helo=[proxy.softathome.com] X-MS-Exchange-CrossTenant-AuthSource: MR2FRA01FT005.eop-fra01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAYP264MB3382 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean |
Series |
gpt: add support to repair gpt
|
expand
|
On Fri, Apr 22, 2022 at 05:46:50PM +0200, Philippe Reynes wrote: > Adds a simple test for the command gpt repair. > > Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com> Applied to u-boot/master, thanks!
diff --git a/test/py/tests/test_gpt.py b/test/py/tests/test_gpt.py index 229d7eb2c2..f707d9f253 100644 --- a/test/py/tests/test_gpt.py +++ b/test/py/tests/test_gpt.py @@ -98,6 +98,16 @@ def test_gpt_verify(state_disk_image, u_boot_console): output = u_boot_console.run_command('gpt verify host 0') assert 'Verify GPT: success!' in output +@pytest.mark.boardspec('sandbox') +@pytest.mark.buildconfigspec('cmd_gpt') +@pytest.mark.requiredtool('sgdisk') +def test_gpt_repair(state_disk_image, u_boot_console): + """Test the gpt repair command.""" + + u_boot_console.run_command('host bind 0 ' + state_disk_image.path) + output = u_boot_console.run_command('gpt repair host 0') + assert 'Repairing GPT: success!' in output + @pytest.mark.boardspec('sandbox') @pytest.mark.buildconfigspec('cmd_gpt') @pytest.mark.requiredtool('sgdisk')
Adds a simple test for the command gpt repair. Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com> --- test/py/tests/test_gpt.py | 10 ++++++++++ 1 file changed, 10 insertions(+)