From patchwork Fri Dec 14 17:10:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 153895 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2313635ljp; Fri, 14 Dec 2018 09:11:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/VSiqEp3LJ5xt1MYDf5ad7FpI5/bWNSo+BHUvVpJJqBj0AXnX/hepEnIwCHx1ymJ0afhza2 X-Received: by 2002:a17:902:142:: with SMTP id 60mr3699734plb.330.1544807459673; Fri, 14 Dec 2018 09:10:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544807459; cv=none; d=google.com; s=arc-20160816; b=LlsU1Svv9WU21JBam3xnAtuwcew2k0RvbWVDCJt4sUAL/SgPbNS6Ka12LnbL9lagcb nR9Jff5oIyvPsXsJ1hVoPVTzP3bKzpPu8YadCe4kHkowhfOxY9u8ZD/Eg/UyfmZTJDnp /prG/cKrayUdF9LKBAlsYK0dpH+oz+7X76GQQctxIMnAfThdMDF9oiMfec1hpSnytaah sFZfi0XLfGpLT6/wBt9Nd+awbN0VoT0+1jQA4nfnpA7/wWX3so6B1MsIWDuxVw7s6f+U yLshLHYoX13LplaUS8QplI/23JhIFRaOJdOXsB35IGn4nO0sX308IjFsplS0GW1rLNzQ HC4A== 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=rPatJu6B5BwGzVX/5MdduIDGXRM5Ip69c3nMtOaRod5HomlHoZUsfdWpl3alWyc7Vj Aw4wHpFzXsE35YS6jhAQ1BgMGi/fNJi+YCvca59a85XUEllb/gda79Aco67nBv+yXCSP 3Oe/NjUXotbRvlDSCcRVS0JbKB9HP5yU121RX0TE1O50rB4zJ0NB6eoy/gnZ3zD1VaUJ GQxugjgSkHUHvUqUuc0YNF/iSdK9KpdEvhDjzWtqjXo6HsMnIfSNJ8YWWVSc9ncxtp26 8q1blN6Iy+zlv6BkNsBpE/SqIHV1Lq9nAnDI/K4ixJraKEingYZprXhfEY9KuMD2bvwb PJwg== 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=QrmkN9Yv; 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 204si4432577pfu.273.2018.12.14.09.10.59; Fri, 14 Dec 2018 09:10:59 -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=QrmkN9Yv; 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 46AEF7BD5E; Fri, 14 Dec 2018 17:10:57 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by mail.openembedded.org (Postfix) with ESMTP id C4EAB6D2AB for ; Fri, 14 Dec 2018 17:10:44 +0000 (UTC) Received: by mail-wr1-f52.google.com with SMTP id r10so6127661wrs.10 for ; Fri, 14 Dec 2018 09:10:46 -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=QrmkN9YvZTUfzzdTwaAifDdij1OarC4zxNmF1pBKySX5MdQiG4vI1hZYQh4Cib8/OX bFTUkMHc0//wPCY9uwYjnUzmOsSNGI1HFeHC7Txiu5C8hulmt5GWCx5ENZ6IopE1s1CZ ekdsZBEeccN4SDXT8Vogyv2Lodom4daIvSQt13lx/jv1MvJKBkt0SZARRFY/P+iFmiXJ TJce8XauSPIxla0gHhmijdNKYi55jVuu2SeSG1w7+1i1iRnwFyitpkE6l5yhS+9EjS17 LN2vCG/1Tx66dI/ThuRDT3rwqcFpl3/EcQ/4zwO/o/bl+/SHKI3VDLwbyKmZ6qY3bqHQ jtPg== 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=kmZ/n50gmVfKgoFTl1R6MEXfI4RWPyoRxiL72wL/nIG6aujcya7SIYxf7XE0kkf3QM l7z3+5loVTb+xVo5eS9cq/dvyz4Ow1T7dhQRHhP789hpFBfZERtRan+r2QMJ1aiosuB4 zWPKAf/JRvFoadGg++UcAKrrz/K/nkTh/CMFZAH1EtdHkaRSlLjBpwMrxQwfUdvO6JTZ SvI9D1Iyn4yw/QnrV01clYb8RFPTei3yK0a3EUOg7JgERPk7mlly56P15FHCryo7B8ab dw4XHjHLByD1/7A5pZ7+INNQCb0cWug0z1Yx3No7aUM0jLc/ohuGZhrGrTbyCiTZHwrH WgFA== X-Gm-Message-State: AA+aEWaZNjciM3Y/Hr8ADEtIZvbcvk4mEHWN0eTg1a+1iWOfHAOLSVlt t7WDT0df4CeGtirN3hA2g7tFQlnNcak= X-Received: by 2002:adf:be8b:: with SMTP id i11mr3423913wrh.235.1544807445235; Fri, 14 Dec 2018 09:10:45 -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 m4sm3560843wmc.3.2018.12.14.09.10.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Dec 2018 09:10:44 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Fri, 14 Dec 2018 17:10:42 +0000 Message-Id: <20181214171042.1965-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