From patchwork Thu Jul 6 09:12:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 116585 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2426702vqx; Thu, 6 Jul 2023 02:31:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlFNA7ctuZ/Ad+tDx8By4AgaZV9TVmIry+wKYoktGHzDnIGYakR4mAmHfsnU2+fVZyRXcAbi X-Received: by 2002:a05:6a00:3a04:b0:677:c9da:14b0 with SMTP id fj4-20020a056a003a0400b00677c9da14b0mr1010506pfb.32.1688635862522; Thu, 06 Jul 2023 02:31:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688635862; cv=none; d=google.com; s=arc-20160816; b=z08yjzI/LS4GjXVuOo79q+mfTSa13OCqHcxVEi4aIgvUGohLfZaJyNJymr/a8WvRiJ ekwblqereQfah9ZDGnnRH6yMDiN4kv+sgPNnrHRaVAMDNm2GiDWqqGxPC1MzYPR2T4p+ qqYh2SxWkSJxSaRBnmn65gftaKccGbxuvpJQbqjELcmwq4M+BdM+LQZ4/o3B9zbjZ2bL UZWAbD5tj1mcGp23XjdccPgNsbhA+ikBDkV2IdiHZ0KPzYDabdsayauT8D5ChASq3aro rXB/w5EAdK8H2VlztiD/81LqdkIgqdA15t94ZQWrO7V27GvYlD49qfdDeem8ieIcfCU+ nZVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=nEX0Pq9z2m/l5u0E7KDrOr7wf1tJkYyWEv2z5j2o42g=; fh=kgRNfNE6xRCHBUX3iUlrLhv5pQPglsdZFzOkxo2Fhpc=; b=X0YOZ25M3/rc53eI1h3lrvMmK5gk8VafoXhOSXEmGHO40jBlFzND4FuLrepILO4t+7 ET8/unRoceWUqMpBxvu5CvDGQjmUydDeeiVIVUnipfe3RP6mlJJ1ghGkGNqZX0h5r0yO xe/Q7djfRO4980er0ANil1f/F3dm+Dq0bGJJZ5WLinrtr7Vaiv0o8sDRca0DUGPDtR21 KjPc9vUmogUWPcDrdRlfiIHigBw+nML7JbESJoeHWLZ2MAHs4dzTXgdIh41uexfNjR5z SHdNrDY/QAR1yp+6VgVbmhARS+BUVEPIKGfKnvme5OJKiFUc+EnBBQ2BK8tvR/5wM2jz 1wDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ca23-20020a056a00419700b0066a48cbde7asi1033547pfb.190.2023.07.06.02.30.49; Thu, 06 Jul 2023 02:31:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231592AbjGFJMy (ORCPT + 99 others); Thu, 6 Jul 2023 05:12:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231492AbjGFJMt (ORCPT ); Thu, 6 Jul 2023 05:12:49 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D0FA1BD3; Thu, 6 Jul 2023 02:12:46 -0700 (PDT) X-QQ-mid: bizesmtp82t1688634755t8dggjlm Received: from linux-lab-host.localdomain ( [116.30.131.119]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 06 Jul 2023 17:12:34 +0800 (CST) X-QQ-SSF: 01200000000000D0W000000A0000000 X-QQ-FEAT: zW5H9jc4KG4l/DMqLN9WXyfKzcgb9HFj0KUXFkALbSbvd9xbR4isjJVslxBTC WRbeHFlS7pVHtZkY74+edO+7cXK6Pz/vL5wgDHSPAj3U+R6PYeN8Pza4By3MvmOxDrDZwxH idXyhTsJ8k85LBuRoGdNdkNQn9xpWrtlVf4ADs1Z9lIX4mfRbLNbrkISXaLCe2zapniR1WE BwqN6xDSngEemBdfLrMVhjh+hSCRd6l/r9tcYnp6lazn9R5eaGsJzlTr9xDNxNtE8kF+nDC M4iN7TfLE/ReSoGM3mUXDB26rRgqdFGhMffij5I+HPBfTc3aE9NvlxrbtQYRknLhFamntyk jGPzJuRtHkHBbSXy2hYYz9qzCexFRaZWlCT54kx9y9zGjD62RRmoPJSE08ltw== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 17950684982473940166 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 5/5] selftests/nolibc: report: add newline before test failures Date: Thu, 6 Jul 2023 17:12:28 +0800 Message-Id: <38d32aa5c477c45a0802b84926f165f82db103c4.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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770663038102636683?= X-GMAIL-MSGID: =?utf-8?q?1770663038102636683?= a newline is inserted just before the test failures to avoid mixing the test failures with the raw test log. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 10e9e5c1bdd0..f5c9c6bf7a19 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -84,7 +84,7 @@ CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \ $(CFLAGS_$(ARCH)) $(CFLAGS_STACKPROTECTOR) LDFLAGS := -s -REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++;print} /\[SKIPPED\][\r]*$$/{s++} \ +REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{if (!f) printf("\n"); f++; print;} /\[SKIPPED\][\r]*$$/{s++} \ 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("\nSee all results in %s\n", ARGV[1]); }'