Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750830AbeAPQfO (ORCPT + 1 other); Tue, 16 Jan 2018 11:35:14 -0500 Received: from osg.samsung.com ([64.30.133.232]:47661 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750997AbeAPQfM (ORCPT ); Tue, 16 Jan 2018 11:35:12 -0500 Subject: Re: [PATCH] selftests: Fix loss of test output in run_kselftests.sh To: Michael Ellerman , linux-kernel@vger.kernel.org Cc: jbacik@fb.com, linux-kselftest@vger.kernel.org, shuah Khan References: <20180116061039.16713-1-mpe@ellerman.id.au> From: Shuah Khan Message-ID: <628da78f-243a-0fec-5a2c-e2be3691ba80@osg.samsung.com> Date: Tue, 16 Jan 2018 09:34:54 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180116061039.16713-1-mpe@ellerman.id.au> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 01/15/2018 11:10 PM, Michael Ellerman wrote: > Commit fbcab13d2e25 ("selftests: silence test output by default") > changed the run_tests logic as well as the logic to generate > run_kselftests.sh to redirect test output away from the console. > > As discussed on the list and at kernel summit, this is not a desirable > default as it means in order to debug a failure the console output is > not sufficient, you also need access to the test machine to get the > full test logs. Additionally it's impolite to write directly to > /tmp/$TEST_NAME on shared systems. > > The change to the run_tests logic was reverted in commit > a323335e62cc ("selftests: lib.mk: print individual test results to > console by default"), and instead a summary option was added so that > quiet output could be requested. > > However the change to run_kselftests.sh was left as-is. > > This commit applies the same logic to the run_kselftests.sh code, ie. > the script now takes a "--summary" option which suppresses the output, > but shows all output by default. > > Additionally instead of writing to /tmp/$TEST_NAME the output is > redirected to the directory where the generated test script is > located. > > Fixes: fbcab13d2e25 ("selftests: silence test output by default") > Signed-off-by: Michael Ellerman > --- > tools/testing/selftests/Makefile | 9 ++++++++- > tools/testing/selftests/lib.mk | 2 +- > 2 files changed, 9 insertions(+), 2 deletions(-) Thanks for catching this. Applied to linux-kselftest next thanks, -- Shuah