Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1454235ybl; Mon, 2 Dec 2019 03:47:03 -0800 (PST) X-Google-Smtp-Source: APXvYqwhTN4RTcgTvdKFJoEi+v0PWGqH2sdxJ5GgJPWj8sPsto6npvTNB6wtOo19GM+HzO46DquJ X-Received: by 2002:adf:ea4f:: with SMTP id j15mr27121107wrn.356.1575287223649; Mon, 02 Dec 2019 03:47:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575287223; cv=none; d=google.com; s=arc-20160816; b=BziBUwmEnewpfmrIp2geAmdNtima52WsTQY7qCNIf8xsrKMPMQjr3LfKv0pk9osSPi L4mhKeHVMRUk1E7zBnHCsSFWvay8sbMdCyqhmc/XJfVv1bzmcyJNMVYE2CixPcVKDKC0 HemdcqNAn0S4sMSU/vKnj9G+6k/4uCLi7g3BOYwoLWfCozIylexcjZhbYeF2iDswrLni kAFFZinwEmztNy0S7osY2zJ0quR83Teiu9iT9VQO0FGPiohBy1RG/qKzab3zVXRyEcdq ttvA+wZUsedsl31F8qEbcghgNucQ68zWHNAOhJrWnYgu+c7UyFyn7teAZwskFmt3ZG4N I+pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:ironport-sdr:dkim-signature; bh=G7BpDGweuBg7iwhggujxcNqO4v3M0dyigUx22oeY/T0=; b=pjDAUWtqnnqOkfikVjtizlep9o6Z48NdZT8IBlyWe+OBaZ9Q0huI3uxXA8zf+1UU9+ SYirEiFPD7cRTMP7kniwI90QTPOvmIzodxmBjffXHUFXMN5InOjj4tL4anbmoxFCiz6y Ge2Dzwyw0hu9dXVV45knMVLE2XcUOxgc1tkAPWgiRj1qU3aLl3GMvQTAG2SkUTFqKQU2 eNBxZJkb1O19J6gOkn803zuIMS/kMjm0TC624biClm4imtCOGrNUEzxIt4O5w+EBGG7Q L560I/8+iMkWfTwhIdAALSfOdxrzGfpd2RnJCY7ibSnSzy4q4mjKQf4u1hZxrEsNCHrK Pghg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=R5CqJdUF; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ot30si9339976ejb.155.2019.12.02.03.46.40; Mon, 02 Dec 2019 03:47:03 -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=@amazon.com header.s=amazon201209 header.b=R5CqJdUF; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727490AbfLBLmz (ORCPT + 99 others); Mon, 2 Dec 2019 06:42:55 -0500 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:41294 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727362AbfLBLmy (ORCPT ); Mon, 2 Dec 2019 06:42:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1575286975; x=1606822975; h=from:to:cc:subject:date:message-id:mime-version; bh=G7BpDGweuBg7iwhggujxcNqO4v3M0dyigUx22oeY/T0=; b=R5CqJdUFhoSIm3OTI/11QFTpBg7VIH0y9YhIgzZg4t7Ow4qsVrTHRu0k oQMK7xaOprMxrkJr7nmMglWatLtPKjQWG7BtPGlbzoBEw8b9OkLeudmOu g2MShMIWf9LqQlpcRIQUuXWdpgRLcrFo5izNE/EJg56ZNVMWHuV9c+bl3 M=; IronPort-SDR: Iri7UEfN/9EXIriRWTUi+FRDCAUBqu+/FoEdxeKrlNp3qzDAx5R9Lr9UHwHkQ4WTduYkyxtGrI RDQPmvoBJMmw== X-IronPort-AV: E=Sophos;i="5.69,268,1571702400"; d="scan'208";a="12391574" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2b-5bdc5131.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP; 02 Dec 2019 11:42:42 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2b-5bdc5131.us-west-2.amazon.com (Postfix) with ESMTPS id 87231A247E; Mon, 2 Dec 2019 11:42:41 +0000 (UTC) Received: from EX13D31EUA001.ant.amazon.com (10.43.165.15) by EX13MTAUEA001.ant.amazon.com (10.43.61.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 2 Dec 2019 11:42:41 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.161.217) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 2 Dec 2019 11:42:37 +0000 From: SeongJae Park To: , CC: , , , SeongJae Park Subject: [PATCH 1/2] kselftest/runner: Print new line in print of timeout log Date: Mon, 2 Dec 2019 12:42:20 +0100 Message-ID: <20191202114221.827-1-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.161.217] X-ClientProxiedBy: EX13D16UWC003.ant.amazon.com (10.43.162.15) To EX13D31EUA001.ant.amazon.com (10.43.165.15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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