From patchwork Tue Nov 7 10:32:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 118141 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3803854qgn; Tue, 7 Nov 2017 02:32:37 -0800 (PST) X-Google-Smtp-Source: ABhQp+SeSe0WSS6zW75PLK7G3j/43G6xjLVi1azYLG7V0Eu4ajUMxtGRy+114/Sd33N/g9UB1yR5 X-Received: by 10.99.105.71 with SMTP id e68mr18140979pgc.55.1510050757703; Tue, 07 Nov 2017 02:32:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510050757; cv=none; d=google.com; s=arc-20160816; b=spos9QFuhfbAsf6a26MfLymPfiIjMT/0RUdI6VjXEMPiyMRDmib55BQBm0xVKVfCiS p+IuwMSpktS5sV1TM6RmULab8kPZbHLV6w+ptBy+bLXmmSj/EGqWcNdy541SjNbZfAkB N43UZ6WEsMvJwk0LPpObL6cINJUZysMdIeh271J+WfASWT5OfKTrvnpNJBt7ZnRGMsGx G7xzpSOrrrvi1oz8Vn0sAwPCrGDpRtSX/Q75rdzZRJaRPdnhGUCa8UAx5IGaPLqZot2o oVHhGFh9EHR4FOxiQWf3Beq9LAKr3epxJbzglrBBXKcsrq/Hc/vo2efHxgV8P0r7wBYW c+yg== 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=NoTj432/7xmaYEot6wnxekEFQMCNdnnTqSsPOVvljWQ9VZKS3DSDA06zGh0E44wkqv QQRD4PGZn+SB9nB+HfuZgAScsd/bobLzWMmPxO3ssR5TtdJyT1fc4et0SJil3MvFxyVC JGzfz7kCEIb8uYE/HlncB5lWMFQbDBPOBjjObWC0cY9r+aIR+pe2gM44ukd8N+el0w/L 43qtGPz2EU6IqMHAI2TaGBa8K8C039mSG3ROVMDoDqNJTrnP140WvUV4MTlgDpFdnxh5 TR3t0afXTXIHh0iC2WkMVdgMBLcCNNCnC74yf/8k/J9/b9FP8i5U2Hq1k4lRLQyzuzet M2dw== 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=jVq4VAGG; 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 m9si870583pln.771.2017.11.07.02.32.36; Tue, 07 Nov 2017 02:32:37 -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=jVq4VAGG; 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 8A56278436; Tue, 7 Nov 2017 10:32:32 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by mail.openembedded.org (Postfix) with ESMTP id 101BE78435 for ; Tue, 7 Nov 2017 10:32:30 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id l22so608014wrc.11 for ; Tue, 07 Nov 2017 02:32:32 -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=jVq4VAGGw28CO+dQjPKUdnz2numGtwzFHsbyliIMi9rYurCcmEV6prn+PRFRtF7SKG oDAgGYKG4uhEa5lrOP0Q498mqZHTXpw93yDom815B/iJSKcDGXnXMUIftx4Cc2DD6ycu S/+ibmU0EbhJOR3q416O5StoD0pMzZ08StqyOQFCmbNRtkR3F+Rdo++hiT0862LCesyn LrN9uKl5c4GRKq+YMSrnHxJ8MAhQ65Qq0B3PsrotfraIxfa5cpLfqhnkcAYvCeuH67sK dwFlAvddKeNu9bqQartzBqjhlFycyGBDPiAaOuo+HtE4bwUxiK4lE+6vu6+qx+lQnzYj JtDw== 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=ShUhlMQSsqRmfsgF07WMilrLOZJ1mBPQTUFvOYFSz7vQfZ7fNV9mtEWLrXYwWYwvWA Ly1jJ5okJn6jdi08mGCAfVf+5YBYnpSxzZcCZkIUJjDgj0uFbc6RLJhcQ6xa/f1ewJd3 vv1fMAeTkU/fi3lH5fr6DuFqraHbFSI8NfeWpd6tGEC+4d7vWIDgO5dEhElXL/itanOG oHDtkSmEOUc2TMAyJdtxVoC7gNqU+j9tRpP3ft7BUNJT91x8FxaipoQiIOf9EL2S9gM5 XPwotNiNuxuE2Oy72SwM1z9MiVdl/mPCLxdmVq+g2aQAOCRYldCTl1/7T/gvZAzP7vM7 Q26A== X-Gm-Message-State: AMCzsaUhfUDMrsZ+2V7bMnh2Mr6FgCY2NMlKkdK7jcLtQuKUs6K6shdI 2iip6ZJ1iGH/Hmqzcs5GI6jVxtRJ X-Received: by 10.223.192.10 with SMTP id z10mr15311286wre.101.1510050751396; Tue, 07 Nov 2017 02:32:31 -0800 (PST) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id l7sm357179wrg.69.2017.11.07.02.32.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Nov 2017 02:32:30 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Tue, 7 Nov 2017 10:32:27 +0000 Message-Id: <20171107103227.9306-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))