Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DE68C35240 for ; Fri, 31 Jan 2020 21:12:26 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DFA34214D8 for ; Fri, 31 Jan 2020 21:12:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Q7fwoFA+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DFA34214D8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:59576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixdaT-0004H1-0n for qemu-devel@archiver.kernel.org; Fri, 31 Jan 2020 16:12:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60547) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixdZE-0002r3-Vc for qemu-devel@nongnu.org; Fri, 31 Jan 2020 16:11:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixdZD-0003DB-S4 for qemu-devel@nongnu.org; Fri, 31 Jan 2020 16:11:08 -0500 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:53534) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixdZD-00037M-M5; Fri, 31 Jan 2020 16:11:07 -0500 Received: by mail-wm1-x342.google.com with SMTP id s10so9486666wmh.3; Fri, 31 Jan 2020 13:11:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4DgmTmXDTc3XoP6PgS5i3UFuOxUpLW86Z2TRHb2sW7Y=; b=Q7fwoFA+EQR0CiQgBgZOQ5CaZrdqAXXioJyRqD7h88Q+6KNWrGehCo+aO3LOVY3wop J0I0DdY9Nnq+Ozv2IvonCGNyz5AS2a2CyMlqvrPlFtiY3J95XFt6bEJhf0q4T4oXvpWE /nVaGbrczBb1h/GPPl5UyrQ2mQtuKotjP2I3aj/XwEhSB7fJSLDMhho/uWx05CogzieH vuVyJN3zu8rFtEpPalXoVQ9v/mSf4p5epxQqcOx04mqhnHsF1ti48SlMQn4ldcQnlfEq scpUlBskFRoNz+F41tVtwQ0G232HL/OnSSe7kAvTCmvbXfje4wS5G1ZpzkDAq3VteyzA ctJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=4DgmTmXDTc3XoP6PgS5i3UFuOxUpLW86Z2TRHb2sW7Y=; b=qVndfdzzO87hHYNQaR0DES1XkMLSK8MC2IF1fj/fEB5X2hIiPa/33qlQ8plyhP4x4Z OU+bFg2dcw3OuxUMjTm/AFX8EnbFIscTFTJASEch6qjzYfjSpvfnA8wYknfNZtTonpht UZOrygwRg519PBuzG2T0FCCSi/ZX+1tT289Qk0PRfOKv+CW7CWnuVH+HKzJ7ckBe7ka0 CF7ImuhjPoNFH9JUKRXEy8XgES2QFRQ++gL603IQ5fCgZlx4ptPq7MO6WRfQgeH2mg6L vP9AQSe2w1iagYNPgrjtUwoG/EHs1eATpLQ9pNhVXl1I7Yoct8odDBW/QmVL4M2feLp5 4VuQ== X-Gm-Message-State: APjAAAUH12P0JbFIBiLEZP6SqnxZhu2vWGrmYASAho3R8oZpuquS03jO Z1pkr0pRccAl825hmxFye2f87+9L X-Google-Smtp-Source: APXvYqwDeC6XCb6vU2d6E13J6cD5QgYS7FHbxMoue0Qg0a3ay/X/agLyP2G9mDHp53l7AY7p2fvTlg== X-Received: by 2002:a1c:740a:: with SMTP id p10mr13978564wmc.65.1580505066363; Fri, 31 Jan 2020 13:11:06 -0800 (PST) Received: from x1w.redhat.com (113.red-83-57-172.dynamicip.rima-tde.net. [83.57.172.113]) by smtp.gmail.com with ESMTPSA id d204sm12236025wmd.30.2020.01.31.13.11.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Jan 2020 13:11:05 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 1/2] tests/acceptance: Extract boot_integratorcp() from test_integratorcp() Date: Fri, 31 Jan 2020 22:11:01 +0100 Message-Id: <20200131211102.29612-2-f4bug@amsat.org> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200131211102.29612-1-f4bug@amsat.org> References: <20200131211102.29612-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::342 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Thomas Huth , Eduardo Habkost , "Dr . David Alan Gilbert" , Wainer dos Santos Moschetta , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-arm@nongnu.org, Gerd Hoffmann , Cleber Rosa Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" As we want to re-use this code, extract it as a new function. Since we are using the PL011 serial console, add a Avocado tag to ease filtering of tests. Signed-off-by: Philippe Mathieu-Daudé --- tests/acceptance/machine_arm_integratorcp.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tests/acceptance/machine_arm_integratorcp.py b/tests/acceptance/machine_arm_integratorcp.py index 4f9ab40f2f..748819916d 100644 --- a/tests/acceptance/machine_arm_integratorcp.py +++ b/tests/acceptance/machine_arm_integratorcp.py @@ -19,12 +19,7 @@ class IntegratorMachine(Test): timeout = 90 - @skipUnless(os.getenv('AVOCADO_ALLOW_UNTRUSTED_CODE'), 'untrusted code') - def test_integratorcp(self): - """ - :avocado: tags=arch:arm - :avocado: tags=machine:integratorcp - """ + def boot_integratorcp(self): kernel_url = ('https://github.com/zayac/qemu-arm/raw/master/' 'arm-test/kernel/zImage.integrator') kernel_hash = '0d7adba893c503267c946a3cbdc63b4b54f25468' @@ -40,4 +35,13 @@ class IntegratorMachine(Test): '-initrd', initrd_path, '-append', 'printk.time=0 console=ttyAMA0') self.vm.launch() + + @skipUnless(os.getenv('AVOCADO_ALLOW_UNTRUSTED_CODE'), 'untrusted code') + def test_integratorcp(self): + """ + :avocado: tags=arch:arm + :avocado: tags=machine:integratorcp + :avocado: tags=device:pl011 + """ + self.boot_integratorcp() wait_for_console_pattern(self, 'Log in as root') -- 2.21.1