Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1639685ybv; Fri, 21 Feb 2020 00:48:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzsNnGPE3GC2VGLD3XMXHNxfTUlnf46QQ3cRehXHOWFFJ5UXVv24aQXLcmbraECCFWJc5vN X-Received: by 2002:a05:6830:13d9:: with SMTP id e25mr26613290otq.134.1582274936531; Fri, 21 Feb 2020 00:48:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582274936; cv=none; d=google.com; s=arc-20160816; b=l5XQhfkKISWmaJuWEw5LVX+l5VicR95CoEtI9wh1i6jtjW21nKR98MLa0GMMhxdqrA ZdUOMZZ5wFwN3eUgLIE0SddGdh/oG5UynCNjeJBOzWc3myKx0Gokbc8GnIVFHrVVHw65 qaS+HTRxtUvePPhIHVwdKneHrI3z7qTxxNuDwgSg5XtugSgnd2mHj0Yj07oTG+QqMTTB jNQnpi1Cqh+aqAy0kVhXllNGC4/DcW8CLT7OIfmI8SLpflL23Vmb7LVKVlCy2hBhmX2C IX5PQNV6b+Ku+IpvDKrHpWE2/ybnLlVUKLgHum5jw5BHKd3xmlA1Y48D3T8JQxfq8cuK tuXw== 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=sMDUeN0Ek86zjaLxavrzu7dHihn5whPJDRZ5e8MpbYU=; b=zhajiNhgLcByWXAY7S5kZeJm6pgv7rVF3C7QgqC5rMkj4eA0CKB4Gcah0/tFa9kfpF KHV+zzW0cv0yAlZS/ispjJYyEn0Rp2RPqQyh+e/i3kvMsE6mh013phyEqkSOpt7y2Y0S PXwGfZN9qDpCUKIa/VofQEGnIjd+jxnjSt59ju3GKhaXej4WCnvbdBrvr+hTjAgB4/rU lnhJYNGjC4HJo3LgRr1MYlrJxeRRd677gDrrI1X9KdDRMvx8tNjiEFQ1UrdJ1q0O/hmY W42t9DGSD1aa26Fn91ufOp9OvK2PMxnQI/IVUANVd5eL5i3vmsuRciEjbAkFmXXPr+Fd ucCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZksfEvkC; 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 x16si1188782otk.13.2020.02.21.00.48.43; Fri, 21 Feb 2020 00:48:56 -0800 (PST) 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=ZksfEvkC; 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 S1728894AbgBUHrU (ORCPT + 99 others); Fri, 21 Feb 2020 02:47:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:43028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728327AbgBUHrO (ORCPT ); Fri, 21 Feb 2020 02:47:14 -0500 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 B8D1B20801; Fri, 21 Feb 2020 07:47:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582271234; bh=kwYS4IJqe/CCzOFwvS5e6qcl5rOhH6tgd+nA24huEr8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZksfEvkC5Pdv9k1MSuJ5xoqGX5FcBdCvM71NVDLyMl9N7iczWmjv3RaQX2O0I8JwS raeuj9NtrEFXHuR8Y3/yzCtLhUD3c2mvCspwqFGz7NnE7Ed4V1p2sLkzKDT7QOw9zq nei8WTdlOEN6A7Q9+OBrV7hmYd5zLZltzT6oOCLg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthieu Baerts , Kees Cook , Shuah Khan , Sasha Levin Subject: [PATCH 5.5 090/399] selftests: settings: tests can be in subsubdirs Date: Fri, 21 Feb 2020 08:36:55 +0100 Message-Id: <20200221072411.075444301@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072402.315346745@linuxfoundation.org> References: <20200221072402.315346745@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Matthieu Baerts [ Upstream commit ac87813d4372f4c005264acbe3b7f00c1dee37c4 ] Commit 852c8cbf34d3 ("selftests/kselftest/runner.sh: Add 45 second timeout per test") adds support for a new per-test-directory "settings" file. But this only works for tests not in a sub-subdirectories, e.g. - tools/testing/selftests/rtc (rtc) is OK, - tools/testing/selftests/net/mptcp (net/mptcp) is not. We have to increase the timeout for net/mptcp tests which are not upstreamed yet but this fix is valid for other tests if they need to add a "settings" file, see the full list with: tools/testing/selftests/*/*/**/Makefile Note that this patch changes the text header message printed at the end of the execution but this text is modified only for the tests that are in sub-subdirectories, e.g. ok 1 selftests: net/mptcp: mptcp_connect.sh Before we had: ok 1 selftests: mptcp: mptcp_connect.sh But showing the full target name is probably better, just in case a subsubdir has the same name as another one in another subdirectory. Fixes: 852c8cbf34d3 (selftests/kselftest/runner.sh: Add 45 second timeout per test) Signed-off-by: Matthieu Baerts Reviewed-by: Kees Cook Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- tools/testing/selftests/kselftest/runner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kselftest/runner.sh b/tools/testing/selftests/kselftest/runner.sh index a8d20cbb711cf..e84d901f85672 100644 --- a/tools/testing/selftests/kselftest/runner.sh +++ b/tools/testing/selftests/kselftest/runner.sh @@ -91,7 +91,7 @@ run_one() run_many() { echo "TAP version 13" - DIR=$(basename "$PWD") + DIR="${PWD#${BASE_DIR}/}" test_num=0 total=$(echo "$@" | wc -w) echo "1..$total" -- 2.20.1