From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 0BF195595 for ; Fri, 15 Jul 2016 15:55:24 +0200 (CEST) Received: by mail-wm0-f51.google.com with SMTP id i5so31104861wmg.0 for ; Fri, 15 Jul 2016 06:55:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=ZGJ1PYObShIry7C5TDoLgIcRfsnxntNARHIHIclOelo=; b=Wi1W1aDk4V07z48/P5L/NBef6+vN1XbTqKER7FjJSmbdYKE1Y41BFJLfj/oeBLKAjF uVO+C5bKn/P5k5LflkOHLFOXv0BIyveNxqO3wHigXJ4GZMpGUe+hsGYdKJyBd9JE1oWW z+LknhGtIujxzMCFUWbl/PSmDYPf5Z9LN5IWfclyNSKCB3t82KmapmWDSzTIcXxCqe5B ConwpPy3o1iOtsR5YVjzzm3QouM26TCkVcnAoVzHOaPic4fsdj4izazEAKGp+88HgZSi cmZg+70vqfdYcLKyiusZa8H+DH/f83KbsoHiFQkPcf0pWnsbvv70e/f0Ke680SQtUnXd BcYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=ZGJ1PYObShIry7C5TDoLgIcRfsnxntNARHIHIclOelo=; b=Bh74G7TJN28Bia+XlBJ5dOqw9hP/8iJnh2Wq02NIWpumWXCAfHXVVYgjeUFy6oIovk OkG0YfGxOs2WrEmJXVzoqkG+WxXo5Fz8uQ7Jkt1pqjeaH4vPgEeCuccFuHHn6BtIfROf HalnjFEkiRO3X5c8CA5rDwacKWpYVjEmVCRe/8vWoRX8V438qLJWsz/xfbzsRTey7FNO l1fgOxUFQgqt1kr+4/rrhs3qwcm4p5rdVU+at4va9OgKOXrT3Lc7TCBmteDBBBlDYMMl W0bZ873TLeNtz5XK+kkW/1CN7JqDELxUKX0uF3r9ru0BE0FuQO4Q5UCWHchk5fkXmKNv R4rw== X-Gm-Message-State: ALyK8tIdcuHoXiV7cOw+Nrqiece2v5/s2eYHMFnYg0d4MDX6RaisS4rWIKesULFbomFSdVqI X-Received: by 10.28.22.6 with SMTP id 6mr4062696wmw.55.1468590923532; Fri, 15 Jul 2016 06:55:23 -0700 (PDT) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id bd8sm886862wjb.40.2016.07.15.06.55.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Jul 2016 06:55:22 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Fri, 15 Jul 2016 15:55:03 +0200 Message-Id: <1468590903-16363-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 Subject: [dpdk-dev] [PATCH] scripts: print failed directory when testing build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2016 13:55:24 -0000 The script test-build.sh can be used to test building several targets with different configurations. The directory name reflects the target and the customized configuration. When there is a failure, it is convenient to print this build directory to quickly know which case is failing without scrolling the build log history. Signed-off-by: Thomas Monjalon --- scripts/test-build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/test-build.sh b/scripts/test-build.sh index 30dfdf5..d2cafc1 100755 --- a/scripts/test-build.sh +++ b/scripts/test-build.sh @@ -96,12 +96,13 @@ configs=${*:-$DPDK_BUILD_TEST_CONFIGS} success=false on_exit () { - if [ "$DPDK_NOTIFY" = notify-send ] ; then - if $success ; then + if $success ; then + [ "$DPDK_NOTIFY" != notify-send ] || \ notify-send -u low --icon=dialog-information 'DPDK build' 'finished' - elif [ -z "$signal" ] ; then + elif [ -z "$signal" ] ; then + [ -z "$dir" ] || echo "failed to build $dir" >&2 + [ "$DPDK_NOTIFY" != notify-send ] || \ notify-send -u low --icon=dialog-error 'DPDK build' 'failed' - fi fi } # catch manual interrupt to ignore notification @@ -232,6 +233,7 @@ for conf in $configs ; do O=$(readlink -m $dir/examples/performance-thread) unset RTE_TARGET echo "################## $dir done." + unset dir done if ! $short ; then -- 2.7.0