Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5652440img; Wed, 27 Mar 2019 12:29:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8z1Y0QnbAfmkJ9jgrFn3yUeCs24ntdeEhmPIG1dXNrHsVXtzQTPz0FM7/ipI/OhZD4A9P X-Received: by 2002:a65:4181:: with SMTP id a1mr36203118pgq.100.1553714982013; Wed, 27 Mar 2019 12:29:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553714982; cv=none; d=google.com; s=arc-20160816; b=vPYNJ8BcIbw/RIClmUDOa0C3Ex0qqnGXvACCSgZkuHXZ9bVv5xWsWOdTcUnJbbDUC2 Eu/kmItMn84LoK6tuoZ7oDSmTwYK2FhBKjeks87mTJzA4Lw4BXWnxyiFVNUD+MfwKMXl vryqEFHhesje0dYAgfqye5aHvRJz1tnH+bWhJNxbax4pRLp95ItxGOUpcuPMQT0lAJTl d5OMrM/gfuxj2YJGi1srO8A5ppRQWa26X5yt7GhHPlZlYYvn5fLF1Db3R+1sjMublNlh 803xu2QLY/YiGkdiNCAkI9FoNFRHxiXpkClxlAolC2+3i5Xtt97/FAKpYxLp3t9/q+6S RMOg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=S17fOU5aw0gA+f/9ZsoiVAAr17Q3OZVu2NMUDI55wdc=; b=Kz6MaVqklJPfJKLy89XZJjD9zrDvimBplSN8+IJnZDwf7EDOBE7FIN9MV35809VBvf 87xSPlc5Uq3j4/JzX5Rnax9D9q2aQ0rAcSewcSmgCcW0Kn9AOC5+pDp2L3zW3klbbedF 0hVnXdcg/TxWY4omuI7FItLvLaABRlC4270tNDZoPJuEa4vAq6ypTCRumDuQBUe9N5kD vSuryZi0PiSV+uJ2s5f8cMdbWwaYyXzTi1123+LcBiVFIOqPXizg10R0geJr+gR2Vqkd D0914G6NKjulRH+oeO17Q1w3J+v3/Q9w5joUWl48dZt9OMw1wTeqHR/su7QdYIqml4Sd ckSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vjkGyqRl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p4si19393380pgb.558.2019.03.27.12.29.26; Wed, 27 Mar 2019 12:29:42 -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=vjkGyqRl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733118AbfC0SEC (ORCPT + 99 others); Wed, 27 Mar 2019 14:04:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:44362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733019AbfC0SD4 (ORCPT ); Wed, 27 Mar 2019 14:03:56 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 320D121734; Wed, 27 Mar 2019 18:03:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553709835; bh=sLMwQcevGfBq0KbV71LfP6MGB2pFjKAuD5ONjyeeVtc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vjkGyqRlwrAKGlrR+OrGmdQY9O5VpL4hli+mm+Ik3+7sE+GAnpeJnYSdVobjjWN9q 899viOS7Yl4tTC61DO5abFHkt+MvpUahgB6mMNJVmfuT1QK0xoVuP/eZGAaASHAsPM 0cUYN3D3kvs6Gu0s2TT+CCkqJWZPJ1X8d3XJpOvM= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Bart Van Assche , Peter Zijlstra , 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 AUTOSEL 5.0 066/262] lockdep/lib/tests: Fix run_tests.sh Date: Wed, 27 Mar 2019 13:58:41 -0400 Message-Id: <20190327180158.10245-66-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327180158.10245-1-sashal@kernel.org> References: <20190327180158.10245-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bart Van Assche [ 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