Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1017614yba; Thu, 4 Apr 2019 02:31:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwu/By1m0HdaCFeD+e6UkazxVyKR5f2NKrdT6w74TvvKchLKdPVT6CXDF0qY15ZL3tHImIf X-Received: by 2002:a63:28f:: with SMTP id 137mr4687977pgc.377.1554370299258; Thu, 04 Apr 2019 02:31:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554370299; cv=none; d=google.com; s=arc-20160816; b=ErkfcruNMLvIrYa16xrHteSZ87KZ8NNzLcltfBb73ouRxQDVf5xMdvnXxRNpzh0EMD pjuYSUTiv9Ohvkdk8xjlKz9sZ7/5G81t6w+yimu5fbk1uFz0wl64yYOZSRVZtBM2Ujum 3ioyLEmiCxXBpsWReyJeQ7LoGcFIL85Pq/dM1vJBeBCsEg7WCaSZo2WJrdT0I9UYknrv SC6LNrAWPmJ44o94Ba7LKC8O53ju47XHvFYlgxKaUz1pEhPdb5+Z2wlcvpPLeOCOOZPy fZmjYj62Y7iyUYuVi99OcWWbqxSTUZukf52Ees+sTufEW6CAOA1jt77AUFpo+NjhG0xk 6KSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PTsHw6jUuSqwSQCdGkHgkAd45boZm+sGZ1IoHV/v5og=; b=vBTJPR+FA1tZ69POoj71+cFpIQgAIoY3MOFVzd2lG8O0uthCSNBFqx/Ig0wUkBZEx2 bV1Bwp82oBbpO/BkaDB4hArAofa6XB4IEOaR4A4kYs/p8+gXpH4GITGysmg+K7QHwNhG V15yZkbNpBY7VmMO3qOrdfGLyYW3j0bAXHFXHf9STjs8G6ZJEONfsx2rfv/mEaXNxNh8 Woesnq0EDbUwk1meARmhcxoOWUy97DTfv760fS1NjB8J86TC8zb6jE6AWu5M71LxNIwn kmtf3Nvb0vd68xVWY7FF26ls02aDpRIqisJGDc+6IcAJmQSZJyB5sQb+yxjDkAsShH3O 8vaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=z65CypQG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si14752485pfm.134.2019.04.04.02.31.24; Thu, 04 Apr 2019 02:31:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=z65CypQG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732948AbfDDJKG (ORCPT + 99 others); Thu, 4 Apr 2019 05:10:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:49488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732097AbfDDJKF (ORCPT ); Thu, 4 Apr 2019 05:10:05 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 064992054F; Thu, 4 Apr 2019 09:10:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554369004; bh=7HhHeJ0/gGt+iD5i54Rqd8/+NPOjcJWaq2fpC9oCORE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z65CypQGvXuCMqwSvDSwIkynLGe66EPA/meJY5PJRiycAiz5HeiAaz2pdbo9jqVQv DLMIarDMn9EVvFByFBHAqho/R6c8g7mUDloiUtJtvzczIAvgKlSLu4sYpWndyHAjys CnFkNWu+X4OBQOMgfqM+swSpuCAd3mXKg46c6TOQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bart Van Assche , "Peter Zijlstra (Intel)" , Andrew Morton , Johannes Berg , Linus Torvalds , "Paul E. McKenney" , Thomas Gleixner , Waiman Long , Will Deacon , johannes.berg@intel.com, tj@kernel.org, Ingo Molnar , Sasha Levin Subject: [PATCH 5.0 062/246] lockdep/lib/tests: Fix run_tests.sh Date: Thu, 4 Apr 2019 10:46:02 +0200 Message-Id: <20190404084621.336239355@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084619.236418459@linuxfoundation.org> References: <20190404084619.236418459@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 5.0-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit d93ac78bf7b37db36fa00225f8e9a14c7ed1b2ba ] Apparently the execute bits were set for the tests/*.sh scripts on my test setup but these are not set in the kernel tree. Fix this by adding the interpreter path in front of the script paths. Signed-off-by: Bart Van Assche Signed-off-by: Peter Zijlstra (Intel) Cc: Andrew Morton Cc: Johannes Berg Cc: Linus Torvalds Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Waiman Long Cc: Will Deacon Cc: johannes.berg@intel.com Cc: tj@kernel.org Fixes: 5ecb8e94b494 ("tools/lib/lockdep/tests: Improve testing accuracy") # v5.0-rc1 Link: https://lkml.kernel.org/r/20190214230058.196511-23-bvanassche@acm.org Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin --- tools/lib/lockdep/run_tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/lib/lockdep/run_tests.sh b/tools/lib/lockdep/run_tests.sh index c8fbd0306960..11f425662b43 100755 --- a/tools/lib/lockdep/run_tests.sh +++ b/tools/lib/lockdep/run_tests.sh @@ -11,7 +11,7 @@ find tests -name '*.c' | sort | while read -r i; do testname=$(basename "$i" .c) echo -ne "$testname... " if gcc -o "tests/$testname" -pthread "$i" liblockdep.a -Iinclude -D__USE_LIBLOCKDEP && - timeout 1 "tests/$testname" 2>&1 | "tests/${testname}.sh"; then + timeout 1 "tests/$testname" 2>&1 | /bin/bash "tests/${testname}.sh"; then echo "PASSED!" else echo "FAILED!" @@ -24,7 +24,7 @@ find tests -name '*.c' | sort | while read -r i; do echo -ne "(PRELOAD) $testname... " if gcc -o "tests/$testname" -pthread -Iinclude "$i" && timeout 1 ./lockdep "tests/$testname" 2>&1 | - "tests/${testname}.sh"; then + /bin/bash "tests/${testname}.sh"; then echo "PASSED!" else echo "FAILED!" @@ -37,7 +37,7 @@ find tests -name '*.c' | sort | while read -r i; do echo -ne "(PRELOAD + Valgrind) $testname... " if gcc -o "tests/$testname" -pthread -Iinclude "$i" && { timeout 10 valgrind --read-var-info=yes ./lockdep "./tests/$testname" >& "tests/${testname}.vg.out"; true; } && - "tests/${testname}.sh" < "tests/${testname}.vg.out" && + /bin/bash "tests/${testname}.sh" < "tests/${testname}.vg.out" && ! grep -Eq '(^==[0-9]*== (Invalid |Uninitialised ))|Mismatched free|Source and destination overlap| UME ' "tests/${testname}.vg.out"; then echo "PASSED!" else -- 2.19.1