Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8211391rwp; Wed, 19 Jul 2023 06:52:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlFqGxnX1OHxlFSvrIwhVdJYb+uU0JgftXXMEUMiRB3lldQ4xyApmWM7jpvqn4+dTDwQqJ6E X-Received: by 2002:a17:90a:3004:b0:265:8184:5903 with SMTP id g4-20020a17090a300400b0026581845903mr1786218pjb.40.1689774771335; Wed, 19 Jul 2023 06:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689774771; cv=none; d=google.com; s=arc-20160816; b=GssT8unp3YfbJVQTyUXwprhbFRm3atUH0Mb4gWoCt025mLuySx6dacuGlcAuRCAefY bc0JlOC/po5Wy6PlK8KMkSLOsGlAoYdgnH6MOFysWiVTNbMqefeG2Q9dbffZqzrTTGHA XJu1157G7wDMmZQy5J+8yEll5pyHXbUs2GMbo465kfkkyc1Xm+DaHXnn8CPIwelq1b+T xT09Uj12FP67pmROPX5BEH1DBH/jXLmkMfS1+MZLDULC2zPeRLRIhQ0efHNj7SA6U3Gu WJ/KNr8AEAuQRXYFmkT4fEKWz/sZa9EFSH15UqWgNpKHHXVKvoBBvrJs1purCRz9YN5u RILQ== 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=80gX1/UcnJTDi5kq1eU4Q1R7TUMAYeq6lajsNy0/Yds=; fh=LUnDCxFG3oyWlcYTkiNww5x4+0V5pkm51/GfDl61ZDU=; b=xGnGQ7cjFq/f/Ee2PqbuqgJN3/fkqIgbT/Foa0ZmYqwCy1Di1F4WGCR5Q50wIg+d7Y bTeC+vbrTPW9hmkmevp9tIn8JAsHEJTFaMIRJgYqyRwQEP/HTroGDRNi3csF5LhHm3bE LYP9T0iaUMrW4k1Dw4n0JTa1x/4JNIbdipZqozVfgwT0kehAnRP4/j32LcKwz4LCmAZX AEpxtLquBhTnPp8cncRXacSxQwjKfLmW91I22CXvmaGOLpP60SVuDlOPdGobFSTPSpI0 r/69uUJLasy6waYksXH2xYV+VFN/hzDqOfTx8cEnFEmrI5M0LkJiAYu+CQq17dOfcI/n QUXw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pi12-20020a17090b1e4c00b00262ef440ed4si1515228pjb.27.2023.07.19.06.52.37; Wed, 19 Jul 2023 06:52:51 -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 S229777AbjGSNUc (ORCPT + 99 others); Wed, 19 Jul 2023 09:20:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjGSNUb (ORCPT ); Wed, 19 Jul 2023 09:20:31 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBA8A113; Wed, 19 Jul 2023 06:20:29 -0700 (PDT) X-QQ-mid: bizesmtp85t1689772819twb1jfej Received: from linux-lab-host.localdomain ( [119.123.130.39]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 19 Jul 2023 21:20:17 +0800 (CST) X-QQ-SSF: 01200000000000D0X000000A0000000 X-QQ-FEAT: D2GZf6M6C/hj3mYQLM88nlD2/Bu6nnA6SGYdUSehcdKNVIGkXjN0KKlH1XkyC rw0zS+R2oehzieMoKnE3XC/UQkcpuzTLEUl+IxDag2sW11hJq2NSTs7tUnFs+JzstgFTm5z unpbSl/Fy6JIRLdNKwSRjWWZcPoHTLevni6NilJdqG0HPbQYUziCJIwMOZTF/BalkMtXf1Z rg2TWC0UCXFlS4Mm/5bPdxy2C9eqJxIKdO4G9XibDMP1pDpjj4nHRMxaErBf7q3RL9LArh8 v6Pm5gNrD4QtMj53G8dK9AE0fovcIj8My5M5mpCmpmtQey5kV0H9GckANp7Kxuf+NHHYnLm GK2vkuxrrObADSOGo6OgsZqq/KTPwc4rCfUiky0LLCakI/9hbyVhwEscb0Jgg== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 14450965798290048757 From: Zhangjin Wu To: w@1wt.eu Cc: thomas@t-8ch.de, arnd@arndb.de, falcon@tinylab.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v2 03/14] selftests/nolibc: print running log to screen Date: Wed, 19 Jul 2023 21:20:17 +0800 Message-Id: <1373113bdaf2d4812c3d712684bd0019f992a032.1689759351.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_BLOCKED,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 When poweroff fails, qemu-system will hang there without any output. It is very hard to debug in such case, let's print the running log to the screen to allow users to learn what is happening at the first glance, without editing the Makefile manually every time. To get a clean output, the 'grep status' command can be used. 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 8c531518bb9f..f1c8e4a0f1b2 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -168,7 +168,7 @@ libc-test: nolibc-test.c # common macros for logging RUN_OUT = $(CURDIR)/run.out -LOG_OUT = > "$(RUN_OUT)" +LOG_OUT = | tee "$(RUN_OUT)" REPORT_RUN_OUT = $(REPORT) "$(RUN_OUT)" # local libc-test -- 2.25.1