From patchwork Thu Dec 13 23:42:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 153703 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1425000ljp; Thu, 13 Dec 2018 15:43:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/VLRLOm02KK8C3byyNELz3h6zCDTbR6m2nvKMLJEp8B128lhvhzq3dxNVzdzAr1KxL9YMIK X-Received: by 2002:a63:4246:: with SMTP id p67mr658086pga.335.1544744580782; Thu, 13 Dec 2018 15:43:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544744580; cv=none; d=google.com; s=arc-20160816; b=GPXR1ODuEp84BjbwANaahfv+Rkh7V0pu3SfSYHM9A+ZLX2ZMwIdgES+jzvCTvAlfGk QUSB+m41RttDD4XSEX8tc/f7A3bdB3v5243F5MxEEL3s7eztksrDntL446YY6q3nSTLP 0GYlUGE+vjj8XiN0bDbZkhmP0b8OKn371yYdCCBE9/Spe35lwtt+8KRH5gsWrP/p/rYL ShPniuwhs3m3DMz/3gQ90XOQ3jXmW5nnGqIOGIW0Jt5dzW4cj6hpJnVVk0nbJbTYBTxp l7L74ny79sbqBTED8c4bKbLEFaWAqqrlTAUzmWhrZ9yV5D8CQ8+KEgNkNO8o34Ke35HH G/2A== 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=L5p/rLrlgLG+Zzzi7A5NO9PIa++VNMtsGmk+POizOVw=; b=yYMSpJYyVED/rz/jSL6ahAW80+SsUyRLKxwKRWJvMYPBbjHPKNT0bsf8uGCU/yFbEI c05Mvi7qpTbjIL/sw/GvNQpX8w1VRsVWz4fycKf8GSfBG5E3cDIy2+1Une2ILKwgN0gu zhjm4y7Z9rQYJw/lXEtya3Nosti9VbESXXS9fcjpcj44+Gc2lXKWC9M8+Q2ZqvhpcZ23 6BB23G4LVHemV3hlum6N2H+ogDz7OBKijVF9AVmz2HuzPrTTjiw6k6TqA1bXXOn/7pm3 z4fy4J2XerAlVJSg6qRyJsNXCRb4JRsaeUtg1DIzrR9BzPKmoA3JfWG4qcpYnxoqaiGk e2Ow== 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="GD/A+Zho"; 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 c26si2628392pgm.210.2018.12.13.15.43.00; Thu, 13 Dec 2018 15:43:00 -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="GD/A+Zho"; 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 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id B94D879CBF; Thu, 13 Dec 2018 23:42:53 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by mail.openembedded.org (Postfix) with ESMTP id B719D799B5 for ; Thu, 13 Dec 2018 23:42:51 +0000 (UTC) Received: by mail-wm1-f47.google.com with SMTP id a18so4130404wmj.1 for ; Thu, 13 Dec 2018 15:42:53 -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=C+2f106Q4n+gmHvr5uCFIaru3IAUr+c3yO3njDNa3k0=; b=GD/A+ZhouaxdP/J6a0gaCyYW09hRe+deOxA4ax8ZWZXm/3QMETGskcVyNBpNVFb6J5 k25AHIxTStbc5jo1voIG1CACKAbfbjVitC48qCBKkGzYLF8HOxGRMSN51831iABnVeLx vA+TUZv2ygyOmXR4vt9Jv47zUsdRuHdcN5ZvH7cg0We1bk/HxOEhbCYqAvUii/zoC2VY 3KOmDsviR99RBqnreaUJyn6ae6AkNIoSGxxKYEggPGR2yr3+ad5s59NimE20MhdBPhqg yJQ1OWzEDdL+YIBzaH/aI+rj45NEpFeXkt8YVrR7hv5YavLzKFUDBSwiskA7dQMrUWU5 w+bg== 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=C+2f106Q4n+gmHvr5uCFIaru3IAUr+c3yO3njDNa3k0=; b=AkLw7xwgvQRbDnFhzR6gfh8VIbs22f76gbBIJ8FWeYGjYr/INwr5O2g8miWb/jKiGZ /vtcmX4K3RHZgLmUn7x8s47IuI5ES41+vWqe6js52vC7ShMLKKdGx6YU+lPm8sASt8ag Uxh6vM29FrOe0a5TGR26qrabnNPi9yjjjV/+ZgUj0LgE5XFq9b+PR2ehxr55nbCx1QuU ZubXF80YJjQJE9EkfODFTHYTjfNeQkqdaglwvMs6hqEmvrBoMMbWz4Nu4+Q7T1qnGfbr Cy7iwh2VU8OwVXGYGUSfokt/4TtlVDvyP9gzfNfQ3D/8PskslDs8Wkpfo59VsR3aorNj UtxA== X-Gm-Message-State: AA+aEWZTctONQxxFCjK3fgIE6RJ5dxSl0itxIzdlDdj6wi28pdffTga3 j0bQ3k6FeF8gLO+4HAfOq2R5nbY4nFM= X-Received: by 2002:a1c:df46:: with SMTP id w67mr1309489wmg.51.1544744572191; Thu, 13 Dec 2018 15:42:52 -0800 (PST) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id a12sm3138994wro.18.2018.12.13.15.42.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Dec 2018 15:42:51 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 13 Dec 2018 23:42:49 +0000 Message-Id: <20181213234249.22843-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] tcl: in run-ptest show output if a test fails 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 If a test fails the log has useful information, so include that in the output. Signed-off-by: Ross Burton --- meta/recipes-devtools/tcltk/tcl/run-ptest | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 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/tcltk/tcl/run-ptest b/meta/recipes-devtools/tcltk/tcl/run-ptest index dadba655f2a..22bb69ae0db 100644 --- a/meta/recipes-devtools/tcltk/tcl/run-ptest +++ b/meta/recipes-devtools/tcltk/tcl/run-ptest @@ -1,8 +1,13 @@ #!/bin/sh -for i in `ls tests/*.test |awk -F/ '{print $2}'`; \ - do TCL_LIBRARY=library ./tcltest tests/all.tcl -file $i >$i.tmp 2>&1; \ - grep -q "^Files with failing tests:" $i.tmp; \ - if [ $? -eq 0 ]; then echo "FAIL: $i"; \ - else echo "PASS: $i"; rm -f $i.tmp; fi; \ +for i in `ls tests/*.test | awk -F/ '{print $2}'`; do + TCL_LIBRARY=library ./tcltest tests/all.tcl -file $i >$i.log 2>&1 + grep -q "^Files with failing tests:" $i.log + if [ $? -eq 0 ]; then + echo "FAIL: $i" + cat $i.log + else + echo "PASS: $i" + fi + rm -f $i.log done