From patchwork Fri Mar 29 22:49:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 161477 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp2602683jan; Fri, 29 Mar 2019 15:49:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjc+GXnuNL1WODtEUDp2GSwgsRXLKwFxUSSFHkD/2oxPU4D9yzF/LJWkMpcwv5mLM82qMi X-Received: by 2002:a65:430a:: with SMTP id j10mr31454032pgq.143.1553899756490; Fri, 29 Mar 2019 15:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553899756; cv=none; d=google.com; s=arc-20160816; b=RskOpeCwLf/MTAPPn0a3LAVoY9IklaVoPHv8b5O21UDqsZO2f8zawgRP0M8/b/A+z3 im7tmhJx5alP5OtAaDDmCiQtow2LRf+cByZkKBXDksQTvZcEUV/+dgrOWCidOs4oRIF5 sZbPrEWXmFwI7tfRJ/wF0qFzonEJASCGJ5aJn1nJ+Bv+nfqp7wjNeJc/2NjOM1ax2RYr 4dTl3Maxb/tZg8vZ5Wui7Jhf6wiA+eH6EW2vx0w7wst7cBy1unDvvm9b27foYEfOVeNk VhXTiYTzc/eEIehJns8oGD0Yul8YVMRvV5EtTqsLNyAEaOAqszKfn5Gd/+sTQVz4Q7tO DOeA== 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; bh=2DneJDt9D4Qnu8h8R1WRoLZll0ZT+mC+ysxZexX/Bo8=; b=kXdE+oJe1Kc2vNq8qpCWQcsHWErTpdx+U48ue8/+UliSGfzFvIw2Z0QaAHcRNMiZ8w xOIhHqpyu5ahcNZON3hF7gDa9MaWbbt22hl9ptJXnuHGNwh0ruvg+Lbl6YeQ0jWNtWnG gfn2nRmGQM4t8yoEPSW8qi7Xqfaf9cNO5//yoPAKj6FObDzlM1FqeIF6uKIuSCTyuvnP OOpmeP/khmw5JmS+bh58xd2EytqXmdXvI13Sms63UuJht1d/IxBwiUDWkqMAGU4/OOqr yjgi07NpU8YS1jR1Qsj5CrGeLx1gMuXWGv4XaUf1u+fvz0Fwn8bzG53zfx3ReSS0qVB8 64IA== 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=XXdD++Oh; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id v25si2788553pfe.22.2019.03.29.15.49.15; Fri, 29 Mar 2019 15:49:16 -0700 (PDT) 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=XXdD++Oh; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id D3CF57D1D5; Fri, 29 Mar 2019 22:49:10 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by mail.openembedded.org (Postfix) with ESMTP id 4807E7D19A for ; Fri, 29 Mar 2019 22:49:08 +0000 (UTC) Received: by mail-wr1-f50.google.com with SMTP id w1so4451860wrp.2 for ; Fri, 29 Mar 2019 15:49:09 -0700 (PDT) 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=DHOiLZbH4df3r9sen3VX5o1N8uNoZoWuJ+ruIl74BZ4=; b=XXdD++OhbnXF3GdK8rmoDxQzozgYB0p8dHcBxxPw5vai/988xYfeoNDw2Azh1qHFzV O1x8GeHalCXipWH0JgFwEA4ljTnzlcOyvClj8uQgFpraeFPSX0ewmX0qjRrjLik5AECQ j9K5Z2V3TBBQsVlL2PFZRmEW14Xs/Q7Ka/jn0QuxEeJ/ZCIchFDFZq3n1BI1ht9flrRL akf9tRN3bor2oMOxd6iKHcuMyfO0ELafHVIbtIANQvujEDN7scKx7hufPc2q/6l1+as/ rY0+HzQYA6O6dsH8kiVsG13wFB3SXbXdKNKsC00ERS1f9xiR/L9uSD2gxHGmrygPChoj i84g== 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=DHOiLZbH4df3r9sen3VX5o1N8uNoZoWuJ+ruIl74BZ4=; b=qq93waqP6wCuw9UCoCOKEks9c4sNceP+ZR1s4bRVN613HHIm90JI8arW9L2ynv2pmy NM+7DLraUWRWlzIQbPebGHmCq1JrGWdT6wdnD5Hiy9fMWkQEhTo10RQ7r+g0HR6bUGOE CtvYGt69qOgf5MGwC0LDcudgE51Ksqu/UYrC+A9zXXAUSTatPx86pAdoL2N48i46YdTU kYFg9NSF+2Of62qkV9/yEeMSZgKfrjWE3PbkxNrptp8V9jo7rg4xahHDUBgq8Asu/nBC gbTeyIWGl4CyDBSC4goNcAT9uO+Bq3Er8GZpWNKVXViUpcgvkixVEowPC9bWFP7NAbuN fCGQ== X-Gm-Message-State: APjAAAXIjBsMuozlzOG2zFAR0AXSO5ZuQEpsJRiG5GfXlMzPFlZr6c2l FvFTh4fP2FrLX6wfVKOKWft6FNCQUnw= X-Received: by 2002:a5d:6a12:: with SMTP id m18mr14830480wru.325.1553899748883; Fri, 29 Mar 2019 15:49:08 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id g8sm6484881wro.77.2019.03.29.15.49.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Mar 2019 15:49:07 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Fri, 29 Mar 2019 22:49:04 +0000 Message-Id: <20190329224904.27359-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] python: improve ptest 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 Add missing runtime dependencies: the test suite needs proper chmod from coreutils, and the Europe/Minsk timezone. Also change run-ptest to use -W (run verbosely on failure) instead of -v (always verbose) to hopefully reduce the noise in the ptest reports. Signed-off-by: Ross Burton --- meta/recipes-devtools/python/python/run-ptest | 2 +- meta/recipes-devtools/python/python3/run-ptest | 2 +- meta/recipes-devtools/python/python3_3.7.2.bb | 2 +- meta/recipes-devtools/python/python_2.7.15.bb | 2 +- 4 files changed, 4 insertions(+), 4 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/recipes-devtools/python/python/run-ptest b/meta/recipes-devtools/python/python/run-ptest index 832551a1244..13dfc99efd5 100644 --- a/meta/recipes-devtools/python/python/run-ptest +++ b/meta/recipes-devtools/python/python/run-ptest @@ -1,3 +1,3 @@ #!/bin/sh -python -m test.regrtest -v | sed -e '/\.\.\. ok/ s/^/PASS: /g' -e '/\.\.\. [ERROR|FAIL]/ s/^/FAIL: /g' -e '/\.\.\. skipped/ s/^/SKIP: /g' -e 's/ \.\.\. ok//g' -e 's/ \.\.\. ERROR//g' -e 's/ \.\.\. FAIL//g' -e 's/ \.\.\. skipped//g' +python -mtest -W | sed -e '/\.\.\. ok/ s/^/PASS: /g' -e '/\.\.\. [ERROR|FAIL]/ s/^/FAIL: /g' -e '/\.\.\. skipped/ s/^/SKIP: /g' -e 's/ \.\.\. ok//g' -e 's/ \.\.\. ERROR//g' -e 's/ \.\.\. FAIL//g' -e 's/ \.\.\. skipped//g' diff --git a/meta/recipes-devtools/python/python3/run-ptest b/meta/recipes-devtools/python/python3/run-ptest index 3863c6d314f..20c9274dfa7 100644 --- a/meta/recipes-devtools/python/python3/run-ptest +++ b/meta/recipes-devtools/python/python3/run-ptest @@ -1,3 +1,3 @@ #!/bin/sh -python3 -m test -v | sed -e '/\.\.\. ok/ s/^/PASS: /g' -e '/\.\.\. [ERROR|FAIL]/ s/^/FAIL: /g' -e '/\.\.\. skipped/ s/^/SKIP: /g' -e 's/ \.\.\. ok//g' -e 's/ \.\.\. ERROR//g' -e 's/ \.\.\. FAIL//g' -e 's/ \.\.\. skipped//g' +python3 -m test -W | sed -e '/\.\.\. ok/ s/^/PASS: /g' -e '/\.\.\. [ERROR|FAIL]/ s/^/FAIL: /g' -e '/\.\.\. skipped/ s/^/SKIP: /g' -e 's/ \.\.\. ok//g' -e 's/ \.\.\. ERROR//g' -e 's/ \.\.\. FAIL//g' -e 's/ \.\.\. skipped//g' diff --git a/meta/recipes-devtools/python/python3_3.7.2.bb b/meta/recipes-devtools/python/python3_3.7.2.bb index 4d10986f3b7..5c64bc8aa2a 100644 --- a/meta/recipes-devtools/python/python3_3.7.2.bb +++ b/meta/recipes-devtools/python/python3_3.7.2.bb @@ -284,7 +284,7 @@ FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN} ${libdir}/python${PYTHON_MA PACKAGES += "${PN}-man" FILES_${PN}-man = "${datadir}/man" -RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests unzip bzip2 libgcc" +RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests unzip bzip2 libgcc tzdata-europe coreutils" RDEPENDS_${PN}-tkinter += "${@bb.utils.contains('PACKAGECONFIG', 'tk', 'tk', '', d)}" RDEPENDS_${PN}-dev = "" diff --git a/meta/recipes-devtools/python/python_2.7.15.bb b/meta/recipes-devtools/python/python_2.7.15.bb index 3e1af4baf63..c459af06f10 100644 --- a/meta/recipes-devtools/python/python_2.7.15.bb +++ b/meta/recipes-devtools/python/python_2.7.15.bb @@ -176,7 +176,7 @@ FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN}" RDEPENDS_${PN}-modules += "${PN}-misc" # ptest -RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests unzip" +RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests unzip tzdata-europe coreutils" RDEPENDS_${PN}-tkinter += "${@bb.utils.contains('PACKAGECONFIG', 'tk', 'tk', '', d)}" # catch manpage PACKAGES += "${PN}-man"