Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2223705ybl; Sat, 7 Dec 2019 10:49:27 -0800 (PST) X-Google-Smtp-Source: APXvYqwDTiOHbL3FSZJl25LBf9xxOlkmLuWSnZeWFNZftdf6X7468TzX7b+uo3ZBV2wVclgxLyuB X-Received: by 2002:a9d:245:: with SMTP id 63mr2516868otb.229.1575744567260; Sat, 07 Dec 2019 10:49:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575744567; cv=none; d=google.com; s=arc-20160816; b=STH3M/pDusMS/Aabj19dcPYjXezZHiucBmrTUeAergwSPVVDpyXdqLik8AzhBUdEt2 8w1sBpW/zrErnZG96R1V1CWfIwr8RPeEFJCZSc9yQ4Kna0WF8rTCNoHaW3jYIk0kosG5 8Bo252TjVZFXNt5xo5ILZSNXnaiAUaaAQSzrjdM2TEqG262Ds1MgVWw5xFV2wksZHqso qHB7/swbLEXvykZoctGCA27l7MGDSq/AgoAHMNqjhTcD0OVJ651gE8y0fzosz7JVNgmh wLBQzUo9qrcA/FNCSsCEKwICEwv/yIroz7xsltICUzKr3l0Vd42Xi4zPWInminkeF/4N XF6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=g+o/W2tR+ah1gbz9xvaeab3ecUOZuYjDYmgHNmd5AdE=; b=h+Iir+WuG7ixmZ28iBQ2bLsSf84x8ArrfF5JX7fhPd9GEpySWmzxN05lgRnyZAuh7W 1Nx2vpEHvt29H4yOxMZL/NMiPvz4sMjlwUE4E+MhBDrvk0ASqCsb6vVX2Yci/8mdaptq Y8sB+3VNiwUO9TGtRgSoFnTbLjOYtb7EUxLzCk1aJcDQrD/KKyhvL6lnNPvb1O4UIkpO wVuN3aDNQcVbdDqeaGSKph4QOijqx9xGxgpXgg3czpdkZGzoNwPbUi93Ue/3p4oLKukG HwUGnqHSGwJQtwNTEnDe9O22yuJmRhAg6SRxwgUiVTZYZOX20GHPwbaiyq3hAai1GzXy yuUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QzCesKk5; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b186si9389498oif.140.2019.12.07.10.49.14; Sat, 07 Dec 2019 10:49:27 -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=@chromium.org header.s=google header.b=QzCesKk5; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726579AbfLGSrq (ORCPT + 99 others); Sat, 7 Dec 2019 13:47:46 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:44066 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726455AbfLGSrq (ORCPT ); Sat, 7 Dec 2019 13:47:46 -0500 Received: by mail-pj1-f68.google.com with SMTP id w5so4100080pjh.11 for ; Sat, 07 Dec 2019 10:47:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=g+o/W2tR+ah1gbz9xvaeab3ecUOZuYjDYmgHNmd5AdE=; b=QzCesKk5H/QnhxdZttmRJxvB/kk5/osU5f08u62cZbz6Sxjf3Af66LOC5a+oHqhwey 3uIDSo1Fut3CXd3pqgvuUReoF2SLaLNOwW6RG5Tx62sPg57BPpJCWbspYo5ZgDDHa0O3 DiqZlUMOdguYLOKoQ2o8Bscf+q/Rs7+ueQ7Po= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=g+o/W2tR+ah1gbz9xvaeab3ecUOZuYjDYmgHNmd5AdE=; b=VRU4+VT/nyqa0yv6pRdVNpk/FQFLw/fpQrRGFlnNwGw/tUSVOJqRY/KfFqOOR+QIKf n9BA5U9tHMMLsAAzfOPJ7K0tSO4kV+omcpjF3gc25K0jLxIhM+g4HkNTkA+RTamEsLQe 8QeSVAzyWas/WmeQHmo01ml76//TH2Nb8hWkR0biqxgReg3OGTE69wdpGm3HbIi5L3CA +LBHFd2R9X7oPmAR2lvDA3fKsT3RLopZSUIbcjXl2Fe+X17ZPlbWDaKR9kEUvt7+Bv0/ N2sDj9GTswIRyhuwfEwn8Ti11gRftEFpTfZwux2QFtlnc3w5kHyjl14fn0PsFXjpx/ey WIBA== X-Gm-Message-State: APjAAAUxI6UFNYnDiHHFJG0xGKn4pqUEz9wkJEqCs6iRx3CEyygXAlBW uTbj8UtQv4cBM49/tQczb0uYXg== X-Received: by 2002:a17:902:ba84:: with SMTP id k4mr20720961pls.141.1575744465750; Sat, 07 Dec 2019 10:47:45 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id u190sm5112943pfb.60.2019.12.07.10.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Dec 2019 10:47:44 -0800 (PST) Date: Sat, 7 Dec 2019 10:47:44 -0800 From: Kees Cook To: SeongJae Park Cc: shuah@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, sj38.park@gmail.com, SeongJae Park Subject: Re: [PATCH 1/2] kselftest/runner: Print new line in print of timeout log Message-ID: <201912071047.E373E19A97@keescook> References: <20191202114221.827-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191202114221.827-1-sjpark@amazon.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > -- Kees Cook