From mboxrd@z Thu Jan 1 00:00:00 1970 From: Panu Matilainen Subject: [PATCH 3/3] scripts: ignore self-generated directories in validate-abi startup check Date: Thu, 10 Mar 2016 12:53:37 +0200 Message-ID: References: To: dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 5852C2BEA for ; Thu, 10 Mar 2016 11:54:06 +0100 (CET) In-Reply-To: In-Reply-To: References: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" When doing multiple runs of validate-abi.sh, the git status check will more often than not unnecessarily fail with "Working directory not clean" error because of the compat_result and compile target directories from the previous run. Filter out the self-generated directories when checking. Signed-off-by: Panu Matilainen --- scripts/validate-abi.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/validate-abi.sh b/scripts/validate-abi.sh index ea60639..a21f883 100755 --- a/scripts/validate-abi.sh +++ b/scripts/validate-abi.sh @@ -163,8 +163,7 @@ log "INFO" "against DPDK DSOs built from version $TAG2." log "INFO" "" # Check to make sure we have a clean tree -git status | grep -q clean -if [ $? -ne 0 ] +if [ $(git status --porcelain | grep -vE "($TARGET|compat_reports)" | wc -l) -ne 0 ] then log "WARN" "Working directory not clean, aborting" cleanup_and_exit 1 -- 2.5.0