Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3152050iog; Mon, 27 Jun 2022 10:11:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t36Mu2apCzUT2ebsXV2L4V9Je/YR+xwO7tS7AWP7P/CJuGNwDIyyaCjw7x6Slbk527oybB X-Received: by 2002:a63:7a0e:0:b0:40c:cfa1:550a with SMTP id v14-20020a637a0e000000b0040ccfa1550amr13687039pgc.514.1656349875638; Mon, 27 Jun 2022 10:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656349875; cv=none; d=google.com; s=arc-20160816; b=vCf8SGJIQ87CTFwmtFi6edNQgMrTXVg8IoDC9nmdPeezjV5rC3ZZTlKqpGGV4qprTB edz+ZEruxJRsdXuVicjwO+5cBAQG49uWo11YSFxLH8mVzcQsOxGlSkINwm8EJ13Gur3g 9C8ptgiK+Ee5bJxRxkvtszlQ0f/27Jb2W9fDmtnsfBs3KOQ2nW3gbzocVPgRZLi8o/lx 7Y0vh+5noebm36l2S0Npz/+FMzh2R7b9WD9HHep/9LqPmWm7YGSltVizGy+oRtR6EZcb cJA6wLpRZWVSmVTgcgHY103/MYCBvZzAFNUuo0jFlU/NHH6n0ecPM2QnXkIs5HZ2fdu9 /oBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=E++Zo91YUYL49yU+TLX4vsiJviRDwZYo3TtlF2dL+yc=; b=p8YQAzU3YbuEk2P6+g0tNBIVJH9wD4eVHsRg3i9BIat2Gf/SqETcgN/3StcnZ80FaW q7M8G47JNJFqs9Y5kMzRVZSoIyYKM9i9IAhjxwqrYTHRiQ/BbNEC4GmConb7sxFVtBcI eHcJUJCAxBaUk5qMpidCpwkkujh9gjTvy4OEPKddOfq6yYA7t3Tg44G77CKZfnb2t5AV DXpIw3ZJg6XRDbX1wishlJKQslmoEsuc0j93bd0b3nmpkE+glEJFViMFWYFKPFInhJ/B +7VUFpWEp0F0kxYPXzkbv6v5aFm3cDFlWi8Lm67Rmf/GctkI7KKALV01pDjeuHWxZmvc Hy0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=TH4qcvBC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s20-20020a634514000000b0040512c0ebfcsi14246594pga.297.2022.06.27.10.11.02; Mon, 27 Jun 2022 10:11:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=TH4qcvBC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239832AbiF0RDz (ORCPT + 99 others); Mon, 27 Jun 2022 13:03:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235533AbiF0RDy (ORCPT ); Mon, 27 Jun 2022 13:03:54 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3AB413D3D for ; Mon, 27 Jun 2022 10:03:53 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id v185so3527202ioe.11 for ; Mon, 27 Jun 2022 10:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=E++Zo91YUYL49yU+TLX4vsiJviRDwZYo3TtlF2dL+yc=; b=TH4qcvBC1WfFEVD0R2JEuUcpb16hZQ61gitb2lAXhJHnsDqjmg6llAHTDZe6jj0mxj T/wEf4Z9pMJPuHomU36S1GhPxojnvtssDMENzgI6XhnASUHDJxfv8WJPh5LFQYXCf9Mq rx2SK6QAf9KONBavHi4wNImeJvU8tMpT7dAzY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=E++Zo91YUYL49yU+TLX4vsiJviRDwZYo3TtlF2dL+yc=; b=gR3yZ5+EJeZr/ImrZa1dCxZbh3MMx1Swezv8R8Obosqwm7mkz66R+pnY6tWzN1x10l fdzocdBMAsj6X5jFQfkDXEg5SYWPeyXC/XvqwWrSslvf4BRfdlIqzVZKQ4ehjkNNcijc o3tmRMeoHHsAiCmoctdnQ/ji0m4F3o1VEWP43rEtJiTyF0gyjFtSnLWzuQIh9jq3p6gn mODPhTCthnqBuWv4g7lPbBZZY0IJEJ0mVxqkHHKd7Dpt4SNnKrp7r0GCuQNIey4XIDJM HPpSCnCZxciZ0vjA32z9W5qXdmSMRtQPLjf1LI9Ar3zV59oyqDz8Y1sLg7vgusonOJgQ 2XRQ== X-Gm-Message-State: AJIora/56ZIMWeBA0mbiGQnw3UEZ3wniv41v3ITXreO509fTKj+GcQ11 Tw4+WzndKk7NYsNaX5i5cfZcEA== X-Received: by 2002:a05:6638:f16:b0:339:e45e:2cb4 with SMTP id h22-20020a0566380f1600b00339e45e2cb4mr8526928jas.151.1656349433131; Mon, 27 Jun 2022 10:03:53 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id q3-20020a02a983000000b0033be74df72csm3881238jam.3.2022.06.27.10.03.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Jun 2022 10:03:52 -0700 (PDT) Subject: Re: [PATCH] kselftests: Enable the echo command to print newlines in Makefile To: Gautam , shuah@kernel.org, brauner@kernel.org, keescook@chromium.org Cc: kafai@fb.com, songliubraving@fb.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-security-module@vger.kernel.org, Shuah Khan References: <20220625135455.167939-1-gautammenghani201@gmail.com> From: Shuah Khan Message-ID: <0c6c6966-0164-12b5-f73f-1ecf157e196f@linuxfoundation.org> Date: Mon, 27 Jun 2022 11:03:52 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20220625135455.167939-1-gautammenghani201@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/25/22 7:54 AM, Gautam wrote: > In the install section of the main Makefile of kselftests, the echo > command is used with -n flag, which disables the printing of new line > due to which the output contains "\n" chars as follows: > > Emit Tests for alsa\nSkipping non-existent dir: arm64 > Emit Tests for breakpoints\nEmit Tests for capabilities\n > > This patch fixes the above bug by using the -e flag. > > Signed-off-by: Gautam > --- > tools/testing/selftests/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile > index de11992dc577..52e31437f1a3 100644 > --- a/tools/testing/selftests/Makefile > +++ b/tools/testing/selftests/Makefile > @@ -253,7 +253,7 @@ ifdef INSTALL_PATH > for TARGET in $(TARGETS); do \ > BUILD_TARGET=$$BUILD/$$TARGET; \ > [ ! -d $(INSTALL_PATH)/$$TARGET ] && echo "Skipping non-existent dir: $$TARGET" && continue; \ > - echo -n "Emit Tests for $$TARGET\n"; \ > + echo -ne "Emit Tests for $$TARGET\n"; \ > $(MAKE) -s --no-print-directory OUTPUT=$$BUILD_TARGET COLLECTION=$$TARGET \ > -C $$TARGET emit_tests >> $(TEST_LIST); \ > done; > Thank you. Will be applied to kselftest next for Linux 5.20-rc1 thanks, -- Shuah