From patchwork Mon Aug 15 21:48:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 1666598 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 4M67G05FjWz9sFs for ; Tue, 16 Aug 2022 07:48:56 +1000 (AEST) Received: by legolas.ozlabs.org (Postfix) id 4M67G014WPz1ygS; Tue, 16 Aug 2022 07:48:56 +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.136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 4M67Fz5hWjz1yfq for ; Tue, 16 Aug 2022 07:48:55 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id E711E60BD9; Mon, 15 Aug 2022 21:48:53 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org E711E60BD9 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 74vTdcJNk3-4; Mon, 15 Aug 2022 21:48:53 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 246E960B97; Mon, 15 Aug 2022 21:48:52 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 246E960B97 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id A9C4F1BF39E for ; Mon, 15 Aug 2022 21:48:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 774EF817AA for ; Mon, 15 Aug 2022 21:48:25 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 774EF817AA X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id er8-Ctl_Dg5i for ; Mon, 15 Aug 2022 21:48:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 555D781761 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [217.70.178.230]) by smtp1.osuosl.org (Postfix) with ESMTPS id 555D781761 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 E238D240005; Mon, 15 Aug 2022 21:48:21 +0000 (UTC) To: Buildroot List , "Yann E. MORIN" , Romain Naour , =?utf-8?b?UmFwaGHDq2wgTcOpbG90dGU=?= Date: Mon, 15 Aug 2022 23:48:14 +0200 Message-Id: <20220815214815.2234201-3-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=1660600102; 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=58DAl33xWaO41oOxaSizf1AWysK8l+Sb8FhBphaWDZU=; b=N6cBMvAMoJCdnKUFphWsvMf0Qm/yduK2dFkisM1Q3kEzhorgDvrkOtffHwf+7PI1+jxcQ3 JOvW121n/hEC05RV1sXMdgQ+AqnEer9hB0lqIkBGAy0bBRVlfMfxOeVHTbBZQcYtuDtD+O l7Bo0nN/8Cb8QtdT7M/R7jRxBKPV5O1gcPb3XGbFNRLLu1OfWCdvo2SqC7TMb6ScMUlIlo R9kgEDAucSrjPDP+Vc6GApoMDd1Fyg2iKj5050Da4yoqsKn1K0Psmpy/tLWx2kBDuBpVDS 0yACDLO8eGEv3qlHIRgwqQ+XGeS+CJEG6TJDeeeXKsobEX3upgiZnHrqEHJiPA== X-Mailman-Original-Authentication-Results: smtp1.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=N6cBMvAM Subject: [Buildroot] [PATCH 2/3] support/testing/tests/package/test_python_botocore: 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_botocore 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/2884635042 Signed-off-by: Thomas Petazzoni --- .../testing/tests/package/test_python_botocore.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/support/testing/tests/package/test_python_botocore.py b/support/testing/tests/package/test_python_botocore.py index 6336c5658f..d198c3e682 100644 --- a/support/testing/tests/package/test_python_botocore.py +++ b/support/testing/tests/package/test_python_botocore.py @@ -1,4 +1,5 @@ from tests.package.test_python import TestPythonPackageBase +import os class TestPythonPy3Botocore(TestPythonPackageBase): @@ -7,6 +8,17 @@ class TestPythonPy3Botocore(TestPythonPackageBase): """ BR2_PACKAGE_PYTHON3=y BR2_PACKAGE_PYTHON_BOTOCORE=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_botocore.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()