Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp909115ybl; Wed, 11 Dec 2019 09:21:59 -0800 (PST) X-Google-Smtp-Source: APXvYqyF8iO7fkhyINXrclDmchGPmmrWhGfmGrSd7dCWI5Hypd4At0a1uuPRnEQkTR94nJagv5rO X-Received: by 2002:a54:4805:: with SMTP id j5mr3418415oij.165.1576084919167; Wed, 11 Dec 2019 09:21:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576084919; cv=none; d=google.com; s=arc-20160816; b=TsLRQl3wjzyx+z9t9uqoa9ywokmLQbYiBYOuIayc3nYfe5XlTVtiDL27kOeBPhFMNo weCQOP6skmjAaZM8PdXD5zgxUTelhGcf6E1zDgTt1WWfxGDLRa4y4reDCx+tEm9buieF /v1KbTglS/1rtQ1IbPERPB01X+xqRfiSlWZdby3dF2UzvIZydr7eKsBFINyhHabG205P 8etSyKKIoWEDyHjutwke/BCKmroJf4XzZIVB4qOe/gBpAtFbuNY1VwzEaERF+SIdbWne Al0nq8zeoIWAulFcf3Y1nfJCOL65wrTCefQbTRZs69NQBhzztpIIfCryXlLmy6K1GyOO xibg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=WAo4ls4sKs1fJjbXM/QJemdd5eIVFStk2N0vxJKwm44=; b=i1qYjWAobsswSItqecln1B4xUq1de3JbdXDRDrLfIuht48FJBgNVnmUj1bqPicpH9/ sIPNw8dGyAvPv93BxcvqqfELzA/XLqHstRhAgOibaGkGpkF2V5Za/sQDvkcGctT7VBh9 vipUvJIg0roDSpNtm385ESs/DbrsMVmBgMLmbKPIZY9ts2T9Rgo5Iw0aQc22ppoN2HqX sZk7AMKbkQSrFKEJDMdAJkZyauYsauUHDWOUg0FA/XZ+GX+kB7MfdEKm1QaBbRieCkWD mjmzmm2u2LL7/2mgZmEqax8dgVDyFmUS3UnRzUeKlRE6nL1aocwtBmEusdCMc2dWyxez 9Jlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RtWJx34Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q21si1459255otn.7.2019.12.11.09.21.42; Wed, 11 Dec 2019 09:21:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RtWJx34Z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731003AbfLKRTw (ORCPT + 99 others); Wed, 11 Dec 2019 12:19:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:52214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730318AbfLKRTv (ORCPT ); Wed, 11 Dec 2019 12:19:51 -0500 Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net [24.9.64.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 21C4020409; Wed, 11 Dec 2019 17:19:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576084791; bh=5mOZy9aSvWTDBTgTyHdmoUhFYOB7lePCh8AYYsfh7YE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=RtWJx34Zl/FZtq9slmr5312KpXPQL1rk9I/EarUJzhOlFkYGZuhzcOG1i5oYEjH2H JoQtSBH4EyOey5qljIW0woKtFhsxpocUnGs79xBWzZyJdSytXnxp/HDvwAmQc0oEkL JGoyrRAeQ0RO2Qe/gaeySjlqUA0rf6YNaMVpHLo4= Subject: Re: [PATCH 1/2] kselftest/runner: Print new line in print of timeout log To: Kees Cook , SeongJae Park Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, sj38.park@gmail.com, SeongJae Park , shuah References: <20191202114221.827-1-sjpark@amazon.com> <201912071047.E373E19A97@keescook> From: shuah Message-ID: Date: Wed, 11 Dec 2019 10:19:50 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <201912071047.E373E19A97@keescook> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/7/19 11:47 AM, Kees Cook wrote: > On Mon, Dec 02, 2019 at 12:42:20PM +0100, SeongJae Park wrote: >> From: SeongJae Park >> >> If a timeout failure occurs, kselftest kills the test process and prints >> the timeout log. If the test process has killed while printing a log >> that ends with new line, the timeout log can be printed in middle of the >> test process output so that it can be seems like a comment, as below: >> >> # test_process_log not ok 3 selftests: timers: nsleep-lat # TIMEOUT >> >> This commit avoids such problem by printing one more line before the >> TIMEOUT failure log. >> >> Signed-off-by: SeongJae Park > > Acked-by: Kees Cook > > Cool, yeah, this looks fine to me. Nice idea! > > -Kees > >> --- >> tools/testing/selftests/kselftest/runner.sh | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/tools/testing/selftests/kselftest/runner.sh b/tools/testing/selftests/kselftest/runner.sh >> index 84de7bc74f2c..a8d20cbb711c 100644 >> --- a/tools/testing/selftests/kselftest/runner.sh >> +++ b/tools/testing/selftests/kselftest/runner.sh >> @@ -79,6 +79,7 @@ run_one() >> if [ $rc -eq $skip_rc ]; then \ >> echo "not ok $test_num $TEST_HDR_MSG # SKIP" >> elif [ $rc -eq $timeout_rc ]; then \ >> + echo "#" >> echo "not ok $test_num $TEST_HDR_MSG # TIMEOUT" >> else >> echo "not ok $test_num $TEST_HDR_MSG # exit=$rc" >> -- >> 2.17.1 >> > Thanks. Applying to fixes for the next 5.5-rc -- Shuah