From nobody Tue Feb 10 04:17:36 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1612791455; cv=none; d=zohomail.com; s=zohoarc; b=Tl6XBBMJ2q2R4+cWc4zRoyjAH86ZN2KtcApYuoNjzk4wWCNLBqNr7h2NqYLDzYf3dkMf3lnb3lRU50RctkDr/cnm0k2kAily2+x+JAIHpGA0Mb6M9N/vuZwx3kMBEzqhghGpQ38kUqZsnzegEIVwB/A2dlABbYZz1wC/r3kESvk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612791455; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=jITNoidllkoIIPBuiQV1gJNrrM15qrzDl0Q/+b51jBA=; b=NhwzmtoIAGeBzzNkmBDmxTK7BzVH11LmQpRuhr5EvGT1y6gAw2jeOkqdy/FNzsFbD6svqHmTHpv9tseB9eAPfDzY0Se+vOJ7qLXeLd2aaNCxoL5iAQhLlENiPaPxMfB0xJezRjYrTfkdnVLdtFU0VH5rS96XsAjKE/zSb7kjJjA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1612791455067193.6049801058506; Mon, 8 Feb 2021 05:37:35 -0800 (PST) Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-447-G62vxR6-MRKCBw32v6niJw-1; Mon, 08 Feb 2021 08:37:31 -0500 Received: by mail-wr1-f72.google.com with SMTP id e15so13102527wrm.13 for ; Mon, 08 Feb 2021 05:37:31 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id o18sm12706252wmp.19.2021.02.08.05.37.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 05:37:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612791454; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jITNoidllkoIIPBuiQV1gJNrrM15qrzDl0Q/+b51jBA=; b=UBLAZnMbhxeg/dWf7nOG4yXU/ZsIdw+pqM0xgPWr2BknFz6noxN6wxE0KNA9EYvLg08ahP OHQgpt/4NgSLwNLofZNeF7ausZESSSKkQALGg67dvPcwG+JLjH3miIsLxqCK9+ouh4aqaK raghRVh8t8F1OW+0hFty082LhSnSusw= X-MC-Unique: G62vxR6-MRKCBw32v6niJw-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=jITNoidllkoIIPBuiQV1gJNrrM15qrzDl0Q/+b51jBA=; b=kirqgC0iEGFd7E6S1uJ6aKw6YvWyKxEDnGL+SoxHcrLVxJCLV0GBcy3QSv1nCBxqdf rJjCYcd+IjT7PQzEJuc274MwIencbgcHif9ZCgxuAE+liVbf6wsPcV+WDkpYNrxEKQrg R0zBG38WZqHXirbzQ1pBQNKkZTt8o0yXZ7YskGIdv7Sli1h9mn9f76V4S21gND7hHyO9 V6rTwVOufPtZHX9ckIZDJX5qSZqliM1S3U8pjvlU5FPNaXHM0YBy6ZzglNgpRjr9bQpi VS4o4t92ofmZqUS6J1NEvQTPt7kKKb5n0geoqg2dW3EBLBdGYAry9TVSXhVA6uyJw70L IiHw== X-Gm-Message-State: AOAM532jdLxrA2xymXxXr0HxvczwdsKQGq6CegixVbhJYaX9oO4HZO8D KlUq/s39TvCeeCFl5Li1ZaXvsogcKE1fuTM7nJQ0RMw5RFH/oGUiz4nXiBS4G36BOKHP1Ayl3zN bFvQjN+RNrrHMyA== X-Received: by 2002:a5d:47a2:: with SMTP id 2mr19863843wrb.393.1612791450099; Mon, 08 Feb 2021 05:37:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOr09k8z7hT2JXJvkdxsrUeG7Zw/0T64qb5hXdp0SOn9dF79fy3bcNpU04uOdaLkgXeK267Q== X-Received: by 2002:a5d:47a2:: with SMTP id 2mr19863821wrb.393.1612791449921; Mon, 08 Feb 2021 05:37:29 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Wainer dos Santos Moschetta , Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Bin Meng , Niek Linnenbank , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 03/18] tests/acceptance: Extract do_test_arm_orangepi_armbian_uboot() method Date: Mon, 8 Feb 2021 14:36:56 +0100 Message-Id: <20210208133711.2596075-4-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210208133711.2596075-1-philmd@redhat.com> References: <20210208133711.2596075-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) From: Philippe Mathieu-Daud=C3=A9 As we want to reuse the same U-Boot test for multiple Armbian releases, extract the common part as do_test_arm_orangepi_armbian_uboot(). Signed-off-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Bin Meng Tested-by: Niek Linnenbank Message-Id: <20201023131808.3198005-4-f4bug@amsat.org> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/acceptance/boot_linux_console.py | 45 ++++++++++++++------------ 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index fb41bb7144b..46835e49dfb 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -802,27 +802,7 @@ def test_arm_orangepi_sd(self): # Wait for VM to shut down gracefully self.vm.wait() =20 - @skipUnless(os.getenv('ARMBIAN_ARTIFACTS_CACHED'), - 'Test artifacts fetched from unreliable dl.armbian.com') - @skipUnless(os.getenv('AVOCADO_ALLOW_LARGE_STORAGE'), 'storage limited= ') - @skipUnless(P7ZIP_AVAILABLE, '7z not installed') - def test_arm_orangepi_bionic(self): - """ - :avocado: tags=3Darch:arm - :avocado: tags=3Dmachine:orangepi-pc - :avocado: tags=3Ddevice:sd - """ - - # This test download a 196MB compressed image and expand it to 1GB - image_url =3D ('https://dl.armbian.com/orangepipc/archive/' - 'Armbian_19.11.3_Orangepipc_bionic_current_5.3.9.7z') - image_hash =3D '196a8ffb72b0123d92cea4a070894813d305c71e' - image_path_7z =3D self.fetch_asset(image_url, asset_hash=3Dimage_h= ash) - image_name =3D 'Armbian_19.11.3_Orangepipc_bionic_current_5.3.9.im= g' - image_path =3D os.path.join(self.workdir, image_name) - process.run("7z e -o%s %s" % (self.workdir, image_path_7z)) - image_pow2ceil_expand(image_path) - + def do_test_arm_orangepi_uboot_armbian(self, image_path): self.vm.set_console() self.vm.add_args('-drive', 'file=3D' + image_path + ',if=3Dsd,form= at=3Draw', '-nic', 'user', @@ -848,6 +828,29 @@ def test_arm_orangepi_bionic(self): 'to ') self.wait_for_console_pattern('Starting Load Kernel Modules...') =20 + @skipUnless(os.getenv('ARMBIAN_ARTIFACTS_CACHED'), + 'Test artifacts fetched from unreliable apt.armbian.com') + @skipUnless(os.getenv('AVOCADO_ALLOW_LARGE_STORAGE'), 'storage limited= ') + @skipUnless(P7ZIP_AVAILABLE, '7z not installed') + def test_arm_orangepi_bionic_19_11(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dmachine:orangepi-pc + :avocado: tags=3Ddevice:sd + """ + + # This test download a 196MB compressed image and expand it to 1GB + image_url =3D ('https://dl.armbian.com/orangepipc/archive/' + 'Armbian_19.11.3_Orangepipc_bionic_current_5.3.9.7z') + image_hash =3D '196a8ffb72b0123d92cea4a070894813d305c71e' + image_path_7z =3D self.fetch_asset(image_url, asset_hash=3Dimage_h= ash) + image_name =3D 'Armbian_19.11.3_Orangepipc_bionic_current_5.3.9.im= g' + image_path =3D os.path.join(self.workdir, image_name) + process.run("7z e -o%s %s" % (self.workdir, image_path_7z)) + image_pow2ceil_expand(image_path) + + self.do_test_arm_orangepi_uboot_armbian(image_path) + @skipUnless(os.getenv('AVOCADO_ALLOW_LARGE_STORAGE'), 'storage limited= ') def test_arm_orangepi_uboot_netbsd9(self): """ --=20 2.26.2