Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1117814ybl; Fri, 6 Dec 2019 11:32:36 -0800 (PST) X-Google-Smtp-Source: APXvYqzwlW7KKH1jc5DLx5wfoVNoskuJm0CawjocRo6M7lFhAnbJPzJVTt8+2ItFIGxL2AZU27je X-Received: by 2002:aca:510d:: with SMTP id f13mr14319763oib.107.1575660756113; Fri, 06 Dec 2019 11:32:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575660756; cv=none; d=google.com; s=arc-20160816; b=KK4/Dma+4yngpK3HUqswMt5KL81FGG/mezhFO0uS07lq3dwWOtZYvKsnW05whGfSgE F23mpO40Dq1cYgfRQieCoFfWgDVd2h2pARiZOxUDaVHm0bGI6mvXSHk5MhxKJWLOpv+3 ioEHlqLDWeqSt9b+mHIHtRdJmhizP34XgBK481wceUHfQm70VPUE2h5ns4rIVMq1O3MQ QK9fLg1+z77Qj5bxOJRLZwStlrP0rvnvKwEWT211sVZQlvrrEty51Q1nfF8BBKxAM4xj Io0HhpMebPzxDwrD9D8nYfPuTRBM+x0INvZV/wHyM88cCWIC4gC1pHAbTxNzTh5mqecV TKxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=c0i7PQFXimXWpGVLkYYKBm4f7YSggydB6SsE85wLPz0=; b=e+1lhSz4CGTjS1coEwHSaMLuYb0UeDWZN/11y0iL9+rNHMin+t7eSHGaLamKAUPZTK uHI/g6jm/O2DDLo2MNkd19+ajhp6Yb/IgWDR2jOZcslMhMGQym0TNVrs+b76e7aiHUTo rTIYUEfLdxey1EFoTSC4Rl1gR2NFgEdEz15yra5AeODIjJAseK04qaIbbI0Nkz2r3/Kl Xs53B9opzNd7yd6AkT7djxX2zYM0de5aiVt0e3/krYNaL8vsGCarFx+nVMcpvAoFHSIc qDnvcrP1LRSBWzw/3GCfup5mWmtwM/GrVtp/fCLtPS+RAYJq87qja2hlNEk6HKaNo1rH A93w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CGqxsXJ1; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r10si7630358otn.241.2019.12.06.11.32.22; Fri, 06 Dec 2019 11:32:36 -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=@gmail.com header.s=20161025 header.b=CGqxsXJ1; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726352AbfLFTbu (ORCPT + 99 others); Fri, 6 Dec 2019 14:31:50 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:33095 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726321AbfLFTbu (ORCPT ); Fri, 6 Dec 2019 14:31:50 -0500 Received: by mail-lj1-f194.google.com with SMTP id 21so8899535ljr.0; Fri, 06 Dec 2019 11:31:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=c0i7PQFXimXWpGVLkYYKBm4f7YSggydB6SsE85wLPz0=; b=CGqxsXJ1NAkcws9QIo/5PmdAISTzNi1qBfMkvLLDNP52aJNNld2YyCheGY8hVccaCQ nHq2UHGPRcxS+fdB2mY10PfOzpVhdmcsCg7uNxWsrN5LHjp3hXEwnTEX6EjMFq2GzpRE FGSlObTNDSZEZLRKW2OZQGBUsN4r0gkqUvD5gLzNvR3Px1OMY314OaQmJGLmO+l8q3d8 jCk4VfSIp9iPF2db8IM/NeSGdDaVt3KcC3oOUtBjYwSfgIG5POjUsKR/HTy3c7bx/S6S 31WTMmPP5EgDt5svdCeZLTOkGDsjQJDPIYCnVM6sNMSnpancUVPQp+bnScpolg45mSym kDdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=c0i7PQFXimXWpGVLkYYKBm4f7YSggydB6SsE85wLPz0=; b=e6Rv20xrsAbNmVzblr2VEK4hHPtPyn/Ry6qfrd7KZUeQhmxjWgWi3F5FCiFBnd021B Oh0N+sKnbZJ5if6VmWYMQrZenMD2XM/SHTo/59a0DisHvhM9WRXKeOt+uivJulPDoknD lkIa6aujw9tZHFXlRT2MI/ZKiD2MOr3p3UWqH4NfEwlBM+CqcFU7fegZV6dtGSMFqrw8 XdH1bmpxuaggA3Fm5niYEpaRm+qOVqG0qfoO+NYS0DuYqEVQbWDmJzzaErFHRl0BsNpP 6YYJ5ld/z04oHAMkxfAhxitWggqNv8HeyMybEpDNMvVK3DAh7SsjJRR4sUs+gfFg9t2T K5uQ== X-Gm-Message-State: APjAAAVhjOQBwkLa0aaA0GTZ0Q+2lbwe33fIXWnOVVNnVY72R8Nx3VAc H6DCxOMYBOJlRW8NsW0enilt8fZ1+9RROg5Uyhs= X-Received: by 2002:a05:651c:102c:: with SMTP id w12mr9448372ljm.53.1575660707792; Fri, 06 Dec 2019 11:31:47 -0800 (PST) MIME-Version: 1.0 References: <20191202114221.827-1-sjpark@amazon.com> In-Reply-To: <20191202114221.827-1-sjpark@amazon.com> From: SeongJae Park Date: Fri, 6 Dec 2019 20:31:21 +0100 Message-ID: Subject: Re: [PATCH 1/2] kselftest/runner: Print new line in print of timeout log To: SeongJae Park Cc: Shuah Khan , Kees Cook , "open list:KERNEL SELFTEST FRAMEWORK" , LKML , SeongJae Park Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Shuah, May I ask your comments? Thanks, SeongJae Park On Mon, Dec 2, 2019 at 12:42 PM 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 > --- > 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 >