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 D188DC636D4 for ; Tue, 7 Feb 2023 21:54:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229564AbjBGVyZ (ORCPT ); Tue, 7 Feb 2023 16:54:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbjBGVyX (ORCPT ); Tue, 7 Feb 2023 16:54:23 -0500 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF5B93B3F7 for ; Tue, 7 Feb 2023 13:54:11 -0800 (PST) Received: by mail-il1-x12a.google.com with SMTP id z2so6655465ilq.2 for ; Tue, 07 Feb 2023 13:54:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=0hubqKtMuYwUvUIi4swYjWUkw4EbQmDjYbC8mfiwm2w=; b=A1Msn2PKzn7+ypZXcJEEO+KbfACpwv+YUpC0RQgNRx0kwSGAW9ARdUBZRDNV7zF3oH azuv26Gsgrga1pR6AimoOrdpDF9RwA7ZyXwyARW3FCOBegQFyCTMR+XUIWJRZ6aNks8l MYfk4vAYR3Qof/DO/2CErbfvcAGaR4dE5liyg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0hubqKtMuYwUvUIi4swYjWUkw4EbQmDjYbC8mfiwm2w=; b=k3AIOGySNnPyEaGDgv1S2SY2X5XfRmdd8IJQK6SeSSRoZW7DAoE/Nnlyo6zMf+nwh9 YK2yj02NPb0llTo+UDrEdS6m7PwpRZC2IAf5MjlndrW1inlHnmUe+IadM0f22De/WHcQ 7nLZ9IcjpByAUR3aljmQSuhz/YKkgXrgl+dsGHfuCNx+RpK3z4nRAJSjRu7Y0MxHsL/q qHvdyjrTvZF95B4ADNhLTyJmrkW9LDW8M/jRZJ7zz9ZmS2ERmzE7Apku1/ztxC/0BcKt 25AgmzBmmUXXilh7EsWAih2Zu1Upz/WRHXREzpEpewEBOg50S+QT2AN92sssZS/AoLuC T25Q== X-Gm-Message-State: AO0yUKXjsDPX9wymBgzk2eFJwvVQjMTB0AIsQme/Hwi9gGdRGB5hsM7K LkFiV1cuFyZTSan5xT7aKOp1gQ== X-Google-Smtp-Source: AK7set/eL/42HZlwEKUPckXmYxlgeRZ4Hwxiiwjnfo5/shFUQKriZV27m5QUZM3kAA2AfnAKtDWXKg== X-Received: by 2002:a92:d484:0:b0:313:cd79:adc2 with SMTP id p4-20020a92d484000000b00313cd79adc2mr3810400ilg.2.1675806851274; Tue, 07 Feb 2023 13:54:11 -0800 (PST) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id r12-20020a056638130c00b003a432de0547sm4861530jad.163.2023.02.07.13.54.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Feb 2023 13:54:10 -0800 (PST) Message-ID: <96536043-2afe-c10d-b4ee-9625203c6242@linuxfoundation.org> Date: Tue, 7 Feb 2023 14:54:09 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v2] selftests: use printf instead of echo -ne Content-Language: en-US To: Guillaume Tucker , Shuah Khan , Gautam , David Laight Cc: kernel@collabora.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, kernelci@lists.linux.dev, Shuah Khan References: <20230204135652.336495-1-guillaume.tucker@collabora.com> <97df8ef0-5eef-91cd-2d6d-eeff764c5e35@collabora.com> From: Shuah Khan In-Reply-To: <97df8ef0-5eef-91cd-2d6d-eeff764c5e35@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/7/23 01:36, Guillaume Tucker wrote: > On 04/02/2023 14:56, Guillaume Tucker wrote: >> On some systems, the default echo command doesn't handle the -e option >> and the output looks like this (arm64 build): >> >> -ne Emit Tests for alsa >> >> -ne Emit Tests for amd-pstate >> >> -ne Emit Tests for arm64 >> >> This is for example the case with the KernelCI Docker images >> e.g. kernelci/gcc-10:x86-kselftest-kernelci. To avoid this issue, use >> printf which handles escape characters as a standard feature and is >> more widespread among modern shells. >> >> The output is now formatted as expected (x86 build this time): >> >> Emit Tests for alsa >> Emit Tests for amd-pstate >> Skipping non-existent dir: arm64 >> >> Reported-by: "kernelci.org bot" >> Suggested-by: David Laight >> Fixes: 3297a4df805d ("kselftests: Enable the echo command to print newlines in Makefile") >> Signed-off-by: Guillaume Tucker >> --- >> >> Notes: >> v2: use printf insead of $(which echo) > > Oh I see you've already applied the v1 on kselftest/next branch: > > 79c16b1120fe selftests: find echo binary to use -ne options > > Do you want me to send this printf fix rebased on top? > Yes please. Thank you. thanks, --- Shuah