From patchwork Thu Jul 6 09:11:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 699946 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E721EB64D9 for ; Thu, 6 Jul 2023 09:11:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230159AbjGFJLh (ORCPT ); Thu, 6 Jul 2023 05:11:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbjGFJLg (ORCPT ); Thu, 6 Jul 2023 05:11:36 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65484DB; Thu, 6 Jul 2023 02:11:34 -0700 (PDT) X-QQ-mid: bizesmtp80t1688634683tlze7x0a Received: from linux-lab-host.localdomain ( [116.30.131.119]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 06 Jul 2023 17:11:22 +0800 (CST) X-QQ-SSF: 01200000000000D0W000000A0000000 X-QQ-FEAT: 1U/NVTUyJNRxt0P5nSwuMLL2FGvAjGF+dkHW2Y/MJag7QbharIuxgGfpjt2s2 tlCqyBfgiEUyRn4LJfDaZ2WIOF/af919RI9ktDUb7l5FJVo0Ba8w8GVh/l0tQPj1z6QcN8a 1N6nAaSHLzyR5FDxWP56pQimBWiHZCM40Pdv53FIYwzo4yoL2XIzET4qDKsDpHJkLC2xznd VyJF8LRWJedFUt3y/4XngpJkppYB5OGdHjOyFlOPM0xoP0L69LoBxkdXDX8BGhNHayPRN1v QsORCI1YSIqNj8XwlWWlBJvH/mWzEOwwFGR0nEf7/k0cfZCryyZhNXzqpFfCbz2ggWvb+jM aawzVAHqisghajm85ohCE0jA8/AKUKaymEyIHXIb2Dupvf3fA9LzJnsFKv0Jw== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 1037799378191978913 From: Zhangjin Wu To: w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, thomas@t-8ch.de Subject: [PATCH v1 4/5] selftests/nolibc: report: extrude the test status line Date: Thu, 6 Jul 2023 17:11:17 +0800 Message-Id: <89f3668f48d01fdac847bdfa085867cb641bad27.1688633188.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org two newlines are added around the test summary line to extrude the test status. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 2c53bf41967b..10e9e5c1bdd0 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -85,9 +85,9 @@ CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \ LDFLAGS := -s REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++;print} /\[SKIPPED\][\r]*$$/{s++} \ - END{ printf("%03d test(s): %03d passed, %03d skipped, %03d failed => status: ", p+s+f, p, s, f); \ + END{ printf("\n%03d test(s): %03d passed, %03d skipped, %03d failed => status: ", p+s+f, p, s, f); \ if (f) printf("failure\n"); else if (s) printf("warning\n"); else printf("success\n");; \ - printf("See all results in %s\n", ARGV[1]); }' + printf("\nSee all results in %s\n", ARGV[1]); }' help: @echo "Supported targets under selftests/nolibc:"