From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3708DC3F6B0 for ; Thu, 11 Aug 2022 15:38:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236283AbiHKPiI (ORCPT ); Thu, 11 Aug 2022 11:38:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236096AbiHKPhk (ORCPT ); Thu, 11 Aug 2022 11:37:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 826BD9F196; Thu, 11 Aug 2022 08:33:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 90B986163F; Thu, 11 Aug 2022 15:33:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30960C43140; Thu, 11 Aug 2022 15:33:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660232023; bh=sW9/BVq1NOOXPAPbiJb2cjdXlpcN+f+YNR/SBBFSBfw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=caUlRVg6L3THsxezQTHcRg8sPBuXomVAykFn/IPF+C8Ss5MyEoleH45elPL1NTrJ9 FnG3GLtE4yTlzsDdiKjN/5eCzaxOXsrzaEsjy+a0wPjvo9M8uYqAhLXTyekIijNV+/ FF2mAoOVnzY6c3sGUZFLsTYrsZQNlK4P501UaMFTz+rjcS5wztH4QTDVlcN9GK1cNV 8B+0mt6LZA2nWhSZDIRi9i8g66U7K3otOz/grjNo7HDSblJkHFLxuYsM595hzMgt6y U56eUnHpzrHHhIjPsdZgMszNeN4rH8II/j8211/PNuT3nHRNkvyb11C+2F9acHqBub 3cUNEEhDnQ3mA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Gautam , Shuah Khan , Sasha Levin , shuah@kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 5.19 050/105] kselftests: Enable the echo command to print newlines in Makefile Date: Thu, 11 Aug 2022 11:27:34 -0400 Message-Id: <20220811152851.1520029-50-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220811152851.1520029-1-sashal@kernel.org> References: <20220811152851.1520029-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org From: Gautam [ Upstream commit 3297a4df805d4263506b6dfec4d1bbeff8862dd8 ] 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 Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- 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; -- 2.35.1