From patchwork Mon Aug 15 21:48:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 1666599 Return-Path: X-Original-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Received: from legolas.ozlabs.org (legolas.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee2:8c49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4M67GF1q41z9s09 for ; Tue, 16 Aug 2022 07:49:09 +1000 (AEST) Received: by legolas.ozlabs.org (Postfix) id 4M67GD49m5z1ygS; Tue, 16 Aug 2022 07:49:08 +1000 (AEST) Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4M67GD2sVqz1yfq for ; Tue, 16 Aug 2022 07:49:08 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id A451B40258; Mon, 15 Aug 2022 21:49:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org A451B40258 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fVw6YeUyXiGB; Mon, 15 Aug 2022 21:49:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 6D79140241; Mon, 15 Aug 2022 21:49:04 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 6D79140241 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 5AFC91BF39E for ; Mon, 15 Aug 2022 21:48:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 367C2403C2 for ; Mon, 15 Aug 2022 21:48:26 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 367C2403C2 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RJl9d8GKKlBM for ; Mon, 15 Aug 2022 21:48:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 2121F4032B Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [217.70.178.230]) by smtp2.osuosl.org (Postfix) with ESMTPS id 2121F4032B for ; Mon, 15 Aug 2022 21:48:24 +0000 (UTC) Received: (Authenticated sender: thomas.petazzoni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 3FC7A240007; Mon, 15 Aug 2022 21:48:23 +0000 (UTC) To: Buildroot List , "Yann E. MORIN" , Romain Naour , =?utf-8?b?UmFwaGHDq2wgTcOpbG90dGU=?= Date: Mon, 15 Aug 2022 23:48:15 +0200 Message-Id: <20220815214815.2234201-4-thomas.petazzoni@bootlin.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815214815.2234201-1-thomas.petazzoni@bootlin.com> References: <20220815214815.2234201-1-thomas.petazzoni@bootlin.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1660600103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hyN0tpTv0cGYMJKC9Vf+vhguH12tVUvLK3LbzL/aqTk=; b=BD5UWbGBTq/fp0rCOR37G1Zn4AOxS3xMxJ3+L0HTvMLrgw0WvSU9OWbV6Mg/92qvrc0XX6 Cqxzts0LY2CJsIQjTCjbcWg92BGQcxkWQ21N6z1RqurPuVC0pZt1w3xKsSBQPcjzgwSmx+ WwiG0l+29GXMhmsU/iG/I2L7Z9ybrLnBasCIOyA5GWid76GMvvVuTay1brP8TVrZvIBnsV LbpsRwyK9MdPEJG31nmiZCNR1MIpvJSPtLraVrcrN+E6c2SAaWpWvQvnvaU68i1eM0r8M6 aiXYZeOC2ADIBm2Zk/+NE6Zoy9kJNDebUVgtHa561dTDrU/sYNC48ph/ubtG9g== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=gm1 header.b=BD5UWbGB Subject: [Buildroot] [PATCH 3/3] support/testing/tests/package/test_python_s3transfer: use ext2 instead of cpio X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Thomas Petazzoni via buildroot From: Thomas Petazzoni Reply-To: Thomas Petazzoni Cc: Thomas Petazzoni Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" The CPIO filesystem generated by the test_python_s3transfer test is too large, and doesn't fit as an initramfs in the 256MB of RAM available in the versatilepb machine. This causes a "Initramfs unpacking failed: write error" when booting, and many files being missing from the root filesystem, ultimately causing the test to fail. It would make sense to switch all test cases to use ext2 + a hard-drive, but for now, let's fix the few test cases that are causing problems. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/2884635126 Signed-off-by: Thomas Petazzoni --- .../testing/tests/package/test_python_s3transfer.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/support/testing/tests/package/test_python_s3transfer.py b/support/testing/tests/package/test_python_s3transfer.py index dc669444ce..cc03ae513a 100644 --- a/support/testing/tests/package/test_python_s3transfer.py +++ b/support/testing/tests/package/test_python_s3transfer.py @@ -1,4 +1,5 @@ from tests.package.test_python import TestPythonPackageBase +import os class TestPythonPy3S3transfer(TestPythonPackageBase): @@ -7,6 +8,17 @@ class TestPythonPy3S3transfer(TestPythonPackageBase): """ BR2_PACKAGE_PYTHON3=y BR2_PACKAGE_PYTHON_S3TRANSFER=y + BR2_TARGET_ROOTFS_EXT2=y + BR2_TARGET_ROOTFS_EXT2_SIZE="120M" + # BR2_TARGET_ROOTFS_TAR is not set """ sample_scripts = ["tests/package/sample_python_s3transfer.py"] timeout = 10 + + def login(self): + ext2_file = os.path.join(self.builddir, "images", "rootfs.ext2") + self.emulator.boot(arch="armv5", + kernel="builtin", + options=["-drive", "file=%s,if=scsi,format=raw" % ext2_file], + kernel_cmdline=["rootwait", "root=/dev/sda"]) + self.emulator.login()