Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4971429pxb; Wed, 26 Jan 2022 01:45:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwz8x6kHK38wBjdxbX728bDJ76xN/K2KHz3F16OHinQJ/s8Zwf92tsvA9skNFQY8q4pcYsJ X-Received: by 2002:a05:6402:3719:: with SMTP id ek25mr24014664edb.184.1643190357815; Wed, 26 Jan 2022 01:45:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643190357; cv=none; d=google.com; s=arc-20160816; b=CoM9zCwVJ+aqd7wlZVgud1ftrWkMXez36F0VAsXl/GqNlvdu9ATSWHjpNA5JGZ5+Ax OenOA5MbBFyQjMyHX5VMt4KaluuvfUg1b0eF/2ziDt7IQBX0XauQ1AaxzpcJX7FEUyPe G+pdTbG+4y64X6kAl78Eqd5PagNGp366NULq9d6Ug07fZa1kkaxGnoOqdoGWswgjGHPL iGFSsuanq6wi7UJ01X1zdTatCpWNc+KVk7a+VGKlXDMVX/Zx/SetabsYxcANjGXq0Sgo 7Lpn8djUM0jdkzsBqVZF/6Jg25DiLZPBuOzJzOuSNlwGy1eJXp/JtsTmDdZG7yD3VkSQ i70Q== 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=T8xWDu4VUa1KMmhWTT9ApCS91QssIS1sg0FGU1r8EdQ=; b=uJucjJRo/YyYHZ2rdGxBbWnWtWm23pI7HgRXCKJ9nEXaZ1+pTnP2N9Iv7O5Y88Lhmh Y5YXwMsar+d5POjrzVHZ0ABoVKR0HVFSJgAigutYsM2oDbl6dbsKDfpFSmtIkkqeC/1d GhxELY6UYRnh8Jdf0ufAiRvd4eMFl7rGVe+cPfucQ5hzHwGjW7XsRjLits7xPDeGgv89 P9LwP8H6iyZR7rMgTtP2zNjKu6f2CrJCa/+wzE9W369H0a5WNYmj0Na9mR1RfY2KV536 ul+zBy9heubvb8NZyjhO3lk6RoA6KkhbisV60AaAKGDBMOd2XLJ88BR07vpfP7WMYuCA f5eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=fPq3W1qM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v29si11842740ejv.374.2022.01.26.01.45.32; Wed, 26 Jan 2022 01:45:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=fPq3W1qM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232594AbiAYUv5 (ORCPT + 99 others); Tue, 25 Jan 2022 15:51:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232620AbiAYUvc (ORCPT ); Tue, 25 Jan 2022 15:51:32 -0500 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 14792C061744 for ; Tue, 25 Jan 2022 12:51:32 -0800 (PST) Received: by mail-io1-xd2a.google.com with SMTP id q204so10661330iod.8 for ; Tue, 25 Jan 2022 12:51:32 -0800 (PST) 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=T8xWDu4VUa1KMmhWTT9ApCS91QssIS1sg0FGU1r8EdQ=; b=fPq3W1qMhDmrc3O/H8jdKQejjyFMQcM1Nf2I2cWXLB9x+cYe7GtZ0SOc+D8gTv3JC9 px3drDlrNv8oN6Vd4UkFmJDaixRaMa1Z/7xVc3/TNd1u7J0OmTKAhVvt2X3h8qtXvhvg LM9w+SFq8dO7kFkvlcUUZV3xdeaARAZFjuobc= 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=T8xWDu4VUa1KMmhWTT9ApCS91QssIS1sg0FGU1r8EdQ=; b=PtnaB+VszxISB1dpuXYWD3nICc9PWpwYZTccHCFrBY2Mpo69XdGVjzCAldGr7KG3sN BKrX4kYD6LNXlb7pigiK8Wfji0xlhGUanupAwNpKfw8ktBV0s9TRSIwdNo2O4viCto+g VTn8sqbZjbqaVmWIZmFv23mgdTi61QvRn1kog5rdBxmlemA3iuBubcgrrBuLZ8OCsVKY hWCxURXq56y3GxrcanYW8MdgsddDyz+aNT8R0x6sTXMa/8OpwO83DEg6dCpbP1r6HXUc rTG2CAq1SjyuogpaTehsXahxZ/yVZRUfaQXPmQdeIcYRhNzCPA9dHnIQXZQCsAltn6fO dDCw== X-Gm-Message-State: AOAM533tCLrclte5WBzSPElfgfqf5qLlFyNw0HmejC05bWTX/4nR4li8 Qtgfc+xs/o4aMyuDrekXsi2wYA== X-Received: by 2002:a05:6638:31e:: with SMTP id w30mr5046563jap.57.1643143891513; Tue, 25 Jan 2022 12:51:31 -0800 (PST) Received: from ?IPv6:2601:282:8200:4c:4ef8:d404:554b:9671? ([2601:282:8200:4c:4ef8:d404:554b:9671]) by smtp.gmail.com with ESMTPSA id e5sm9374160ilq.9.2022.01.25.12.51.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Jan 2022 12:51:31 -0800 (PST) Subject: Re: [PATCH] selftests: cpufreq: Write test output to stdout as well To: Viresh Kumar , =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Cc: Shuah Khan , "Rafael J. Wysocki" , linux-pm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Shuah Khan References: <20220114232126.92043-1-nfraprado@collabora.com> <20220117064144.bovae2r4wnln7g7k@vireshk-i7> From: Shuah Khan Message-ID: <31ebfa0a-5e2d-332c-cbe1-22bdfeee8cd9@linuxfoundation.org> Date: Tue, 25 Jan 2022 13:51:29 -0700 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: <20220117064144.bovae2r4wnln7g7k@vireshk-i7> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/16/22 11:41 PM, Viresh Kumar wrote: > On 14-01-22, 18:21, NĂ­colas F. R. A. Prado wrote: >> Use 'tee' to send the test output to stdout in addition to the current >> output file. This makes the output easier to handle in automated test >> systems and is superior to only later dumping the output file contents >> to stdout, since this way the test output can be interleaved with other >> log messages, like from the kernel, so that chronology is preserved, >> making it easier to detect issues. >> >> Signed-off-by: NĂ­colas F. R. A. Prado >> --- >> tools/testing/selftests/cpufreq/main.sh | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/tools/testing/selftests/cpufreq/main.sh b/tools/testing/selftests/cpufreq/main.sh >> index 31f8c9a76c5f..60ce18ed0666 100755 >> --- a/tools/testing/selftests/cpufreq/main.sh >> +++ b/tools/testing/selftests/cpufreq/main.sh >> @@ -194,5 +194,5 @@ prerequisite >> >> # Run requested functions >> clear_dumps $OUTFILE >> -do_test >> $OUTFILE.txt >> +do_test | tee -a $OUTFILE.txt >> dmesg_dumps $OUTFILE > > Acked-by: Viresh Kumar > Thank you. Applied to linux-kselftest fixes for rc2/3 thanks, -- Shuah