From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mail.openembedded.org (Postfix) with ESMTP id 01445748CC for ; Wed, 4 Apr 2018 11:20:19 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Apr 2018 04:20:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,405,1517904000"; d="scan'208";a="40599859" Received: from kanavin-desktop.fi.intel.com ([10.237.68.161]) by orsmga003.jf.intel.com with ESMTP; 04 Apr 2018 04:20:20 -0700 From: Alexander Kanavin To: openembedded-core@lists.openembedded.org Date: Wed, 4 Apr 2018 14:13:21 +0300 Message-Id: <20180404111321.10824-22-alexander.kanavin@linux.intel.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180404111321.10824-1-alexander.kanavin@linux.intel.com> References: <20180404111321.10824-1-alexander.kanavin@linux.intel.com> Subject: [PATCH 22/22] oeqa/runtime/cases/python: use python 3 rather than python 2 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: , X-List-Received-Date: Wed, 04 Apr 2018 11:20:20 -0000 For example, core-image-sato skipped the test alltogether, as it no longer pulls in Python 2.x at all. Signed-off-by: Alexander Kanavin --- meta/lib/oeqa/runtime/cases/python.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.16.1