From patchwork Mon Nov 6 17:55:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 118075 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3036336qgn; Mon, 6 Nov 2017 09:56:08 -0800 (PST) X-Google-Smtp-Source: ABhQp+QQV5j+WbWY9lsPh0xbjfXZSnWsJvn3LQ23ucmRrNwKWwakiwKgowaFkGTMEkkDB0L2pvGu X-Received: by 10.159.198.11 with SMTP id f11mr15739247plo.425.1509990968363; Mon, 06 Nov 2017 09:56:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509990968; cv=none; d=google.com; s=arc-20160816; b=CpGzWQgEPuB1uqtu2vDcXLsezNXivAT8hXBBPmiqd4fGwU9onrrRxsvYwBd7XxDZVW b8e6cWqxij6S6wI9fIiouMrgRy82ajyEsJCk1/Ot6Tq8QZZV2epK43svDoJs+Kn9Lrey Ob0/m+q1EVSL5hL0nIL/Fb0ULFadVRp+8qTnxPcvELLRnRraKU4SB1z/PqtU7e3v7F9h Jw5/NhZjhUROMb9kPfpuugl3jfD5p3ufPxD0iiMbnFyqA1lgfbpERzEWDFjeTOwGn8Bp 39QzuQyMP71PKLXaQFcZTRQ3crtvf+V7upNI+xpWfJ2aEYmaeNzeoHZWfDsuHNEdyYNG JTQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=IvhaFRpbjXBOGUWdpoFnkAi6j2DqTIHd7rWcHI/Ad2o=; b=DTZcP92ONi+hTIRd47SJ3fr7VSkgjCKnLc7zQk6Dtc25AktAVnvQm37XCgpt857elM wTi+W5JWOFc/uSQ6GqOyd64lVRj5ler1ccREt+cfe891BztPpVukNDCWNIIlghFTLjB/ cBSP9lu8WXPnOofz9R5VinOKBf6RJTX7SVUuNStB1MsowxhynvjsVPpnBGsUpq6g5A6D 5XQbqVAuU5S4wigSq3kcTFFf/SOcGBkgg1jQF/7e+saGljesfrgpcgVztJuY3Ky4wzg/ f4i/uZyDWnainX2Y2HvbGNYE25rwxC1MJiqJwt8grIU73MEVsBWZ2Y7NJB+LP7t0hSKo x8KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=fv1dHZ8n; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id y96si9594604plh.567.2017.11.06.09.56.07; Mon, 06 Nov 2017 09:56:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=fv1dHZ8n; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id A473878431; Mon, 6 Nov 2017 17:56:02 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by mail.openembedded.org (Postfix) with ESMTP id E3F7460125 for ; Mon, 6 Nov 2017 17:56:00 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id y83so15921993wmc.4 for ; Mon, 06 Nov 2017 09:56:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=PHPsUfAp8Kswwr0f13nNU0tF1wFJmfdfw+LYJrxRbTs=; b=fv1dHZ8nQtqFMbn4Iom3+/X8vv6IReo4YqrnPQDZRbxZhPNFuSE8/+yUBwxf3+Wdv1 7ExWz9bs/+Fg9nWqb50GTEbvFEHPHA4rAo67qAXSGYodvM8n3zS/vASnigp1SeQKqID1 0NYpt2GpNpv8RShXG0ef61kELumuMum3N4VbNfxMi4STNdpcXk1hpij72uLntHIayReG 4VdXDTI9xBDHZrOc5d+0Y5oQQceh5fl9YwjVX2hv6xr2+jkbjIzi4yXRiOaMTamh/ANy fKtSnYpxZvNu5vaQxEkGcUiL3JGMLH1QMvW1rX8KlDpfRmRBmXDDpHEcAMzmqc8hVn0J AtZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=PHPsUfAp8Kswwr0f13nNU0tF1wFJmfdfw+LYJrxRbTs=; b=RCo0hjDnEwY8ufhGVc564EgfTLyxjLdVVZVkP75e+SettbhbVB1QQ5WCCBDfHhuVuK hP+9YyEgWUyoeAiKbTk1PJRI070G/vMt3fu9Tg57FtRtnM8qquxyQuQS9ZD8qp6IOkpy qCk3gK4XS0brrFFOratNC1Aj7Q4K7qsg0Iu17fI57apA43UASjkAOrLYRiddwetQ6jfM HhOODRB7jXqjZUE26sT8tX6ekmOC3L/b+EJV/FmCFV8vRwk7ZGBpOb51yZrExW/WpiV0 2HOOSoDZAJSM3d6KcBA9joCWulVY2z24xkRj8ZXhbeZ9H/9yJRcPHq93LglIKlxqVlVz B84w== X-Gm-Message-State: AJaThX43svnc/00iX/2lPq5IyYIb4AG8LLxH3INxh8pOF4fculAN+H8z iJa3/cZJ2ew+BdqJ9BJvFBsKwGzF X-Received: by 10.28.193.76 with SMTP id r73mr5467692wmf.18.1509990961474; Mon, 06 Nov 2017 09:56:01 -0800 (PST) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id n14sm15168327wrg.38.2017.11.06.09.56.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Nov 2017 09:56:00 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Mon, 6 Nov 2017 17:55:58 +0000 Message-Id: <20171106175558.24581-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] oeqa/selftest/runtime_test: fix postinst_rootfs_and_boot X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org This test overrides IMAGE_FEATURES but failed to include package-management, which is essential for postinsts to work under dpkg. Also rewrite the file existence check to use a console login not SSH for simplicity. Signed-off-by: Ross Burton --- meta/lib/oeqa/selftest/cases/runtime_test.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py index 7ce81c3ff0f..25270b7535b 100644 --- a/meta/lib/oeqa/selftest/cases/runtime_test.py +++ b/meta/lib/oeqa/selftest/cases/runtime_test.py @@ -244,7 +244,7 @@ postinst-delayed-t \ with self.subTest(init_manager=init_manager, package_class=classes): features = 'MACHINE = "qemux86"\n' features += 'CORE_IMAGE_EXTRA_INSTALL += "%s %s "\n'% (rootfs_pkg, boot_pkg) - features += 'IMAGE_FEATURES += "empty-root-password ssh-server-openssh"\n' + features += 'IMAGE_FEATURES += "package-management empty-root-password"\n' features += 'PACKAGE_CLASSES = "%s"\n' % classes if init_manager == "systemd": features += 'DISTRO_FEATURES_append = " systemd"\n' @@ -263,6 +263,5 @@ postinst-delayed-t \ testcommand = 'ls /etc/' + fileboot_name with runqemu('core-image-minimal') as qemu: - ssh = SSHControl(ip=qemu.ip, logfile=qemu.sshlog) - status, output = ssh.run(testcommand) + status, output = qemu.run_serial("-f /etc/" + fileboot_name) self.assertEqual(status, 0, 'File %s was not created at first boot (%s)' % (fileboot_name, output))