From patchwork Tue Nov 7 10:32:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 118142 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3804138qgn; Tue, 7 Nov 2017 02:32:57 -0800 (PST) X-Google-Smtp-Source: ABhQp+Sh64lDPgkWx8BIDe/kdhm6oJdPg9hMv3WC6cP6wOlhyPwfVUbToSn64LSHgIG4KhQ0+mUE X-Received: by 10.159.234.12 with SMTP id be12mr18020818plb.350.1510050777553; Tue, 07 Nov 2017 02:32:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510050777; cv=none; d=google.com; s=arc-20160816; b=uwbVV35gT23BKuYJJH/JfaaeS2X7EfO8SlVfWJuL3k6Rb3oS57z11c6xR2HC2X0s/Z infeETuA7JKSNIukTgbPb4hJhyEYqaNGrrUW01Jj8cw93+HKVQkE03eNJjQ9St9b1WhH tHvztf5gl3EaIKXDqQxVYgAmU38sYlFppbDL/eiwY4UIql4RYkAAc594mbH8WBBTGuZH JF+cC+S13Zb/5ao0m7+0QTUmo/wxauaIXI0M/IaQFwMMRtNh8oo0DEXe3GjMCktjWvof gmimllLs+HquNeYMIYNoRAVJqE4pOOyM+HcS4xGXY5mK6LS5wdKUS5BUZ5lOryWD9f5O jfWg== 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=7gGxTh2brxr0G9TKY9bCL8m2xeqiyGT5LDqUEe1smHQ=; b=S285z0BhzEoT6/xgQ+0klvoZ1M8uPQk42BMj5OP971Old78klMZ51yXAoyAsJneclD qc088HGiQ6776XhbrzoHx+iXhLsnjohLq5OVISZQ7dRqU8uq9xulNaHQ19sfGafeaN4U fnmTYSyCNO7DnDHSQPI2dSzK1LmS/frQbVM3wQ1lBRR00Y8tpCMTmanbEXokTbwTso9y 8zKTmwTD+AoywQ6muEt7rx3oMyIQeKH+l8i0a+49XHSHC7zn5eqvtYGoRjb+cQjE10As 3qULeDITGa9K4vCk08Wjd2gGYeOQZ2QMrriBkhCnpJ/GGVJpLZ+BZX/HrvmM/ss/KuRZ dsAg== 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=MtrX/RcV; 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 n8si827085pgs.144.2017.11.07.02.32.57; Tue, 07 Nov 2017 02:32:57 -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=MtrX/RcV; 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 CC38878453; Tue, 7 Nov 2017 10:32:54 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by mail.openembedded.org (Postfix) with ESMTP id 9DC2978438 for ; Tue, 7 Nov 2017 10:32:41 +0000 (UTC) Received: by mail-wm0-f68.google.com with SMTP id r68so2725226wmr.3 for ; Tue, 07 Nov 2017 02:32:42 -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=KN2hvlylm6clVcxuyOjd6LEJ4VUSVd2njEbDGE8jBEo=; b=MtrX/RcVPGUcKRRS25ADpByOWMCqjgCrN5e9Pelt6yhUqxwnN4ahBoEZb/bkYY/aO/ 9FohoN1fb9JpAnxIpxBs/Ara1u2XV7h+4yAWAbfZmHrzXHyZgBwLbgijnbD+mNfq8czK ST9UkDmV98i9KaPxtHLuKH1GRtZ+VWGGCokNWBEhksgIboOLFXShuAPCcTGAmUYPxVPq KLNopjr1X2kzOCoDcuMhY+qvEYjklC5Hv9W5ggnNRMRIhFLPkzC3Ow/ofhhtIM7bdKrd zbq0CGUPYU6C6tUEpi8hVxHDF/WSBSCX2tjM5wqSNZn2aVY1veoGVLIlAlHaCLppl3oo rRGg== 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=KN2hvlylm6clVcxuyOjd6LEJ4VUSVd2njEbDGE8jBEo=; b=foFZ05+I45+6yrKT1MLQBS0YvVxsSPw1ztw7VblUHN9Jd3xnkWLECVYgoWGuWhx6Fy 3hEPZ2wSxUJjDtInvCtBXE/PQ8UXRx10FqytuZzTXalD/aE1Ygj22BNWZFg5rhHiW+Rf vw4pa7oIYSGXz5EsgTslrTb1a/AgCrMd6ZYVjv9mJtgjCPf0MJbdy7ZLshNaStM1x8ny 5fCTugDBEBPnmaSLbSGgPAGiFRg4UwogAZN8dsdLqvA+p42sD6h6ISbIRO3DGSrTNQUR PNqp8Tqxg/cMxJ5LUf3QUozn64z0r/NIgDhO8jGAzyvil4j1D8PJSAq0Vtll7fj1Mrup RkYw== X-Gm-Message-State: AJaThX6ZE01kYWn2VhOYu3WI0fUWOHANbLCZErwM+UL4bbmH7F46qd/q IhCCFpAqgEu/J0+eKg+aRC9vaqw9 X-Received: by 10.28.228.197 with SMTP id b188mr956108wmh.59.1510050761849; Tue, 07 Nov 2017 02:32:41 -0800 (PST) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id c67sm653126wmd.25.2017.11.07.02.32.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Nov 2017 02:32:41 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Tue, 7 Nov 2017 10:32:39 +0000 Message-Id: <20171107103239.9357-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] oeqa/runtime/python: port to Python 3 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 Signed-off-by: Ross Burton --- meta/lib/oeqa/runtime/cases/python.py | 6 +++--- 1 file changed, 3 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/runtime/cases/python.py b/meta/lib/oeqa/runtime/cases/python.py index bf3e1791638..3d6eb088024 100644 --- a/meta/lib/oeqa/runtime/cases/python.py +++ b/meta/lib/oeqa/runtime/cases/python.py @@ -20,16 +20,16 @@ class PythonTest(OERuntimeTestCase): @OETestID(1145) @OETestDepends(['ssh.SSHTest.test_ssh']) - @OEHasPackage(['python-core']) + @OEHasPackage(['python3-core']) def test_python_exists(self): - status, output = self.target.run('which python') + status, output = self.target.run('which python3') msg = 'Python binary not in PATH or not on target.' self.assertEqual(status, 0, msg=msg) @OETestID(965) @OETestDepends(['python.PythonTest.test_python_exists']) def test_python_stdout(self): - status, output = self.target.run('python /tmp/test.py') + status, output = self.target.run('python3 /tmp/test.py') msg = 'Exit status was not 0. Output: %s' % output self.assertEqual(status, 0, msg=msg)