Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp795855pxb; Fri, 14 Jan 2022 17:02:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9sFW4y5brQLQfQEkLXpizkLLOdC1q3OxNKTtfGPjUC4L8sfvEwbHe9ewSlsp3PfXkCfD0 X-Received: by 2002:a17:902:7849:b0:149:eb60:17b6 with SMTP id e9-20020a170902784900b00149eb6017b6mr11900238pln.89.1642208524753; Fri, 14 Jan 2022 17:02:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642208524; cv=none; d=google.com; s=arc-20160816; b=X97aZJGrXH1hg8Km/lm47otrC6UZHju3LGCZ2whFUbGiZdj485skcK8qzM+3PeSPij Vxdfq1ft8Y3bY1dFag6ULp4L/HH+UUPJiDcmSsmh7QzOH5QEbp8XyZwRSmpZT/pVGvcE RKiT+KOpUT3CtogFxWIM3u3Uf17xe19OL3YLnbV88G8U+DwShLh8pAkcmCe8iIfWpxZz IU1R5JooaEzajBsDAIbbC7YLWoSuHb884DFkkFCOlPUoyI6HoEtCLSlGbhgbJI4QAWvF tM0N66kCHF2WQnOEGfi36do7nm9lyKhCfF7gVSXfwEY8rqUiETIFEtDp5C8QXp9vVueg kqJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=zfnwho+fYRsdytvAr+vP7mJPScOWPhbmPNpYqgaAovA=; b=mX6dRxFbjpuL4zSso+Y3e/LSVrH9+swhngDC5OU//8J03PunFTvKz7hBIqAUCQP4DG mp/5e1r0gqlVf1quMZbjmM4MeTvqv47gdzmtxNVeNAUaUy7vKmMbZas7Vw09iRMLf5bv ocbYPXxgH1qn75IsB/EkXQs/ndUbN5v3xP0CKTasK3bYrm+1th9twYUM+igThJm1nvI3 HKpsDwZwkEq4FYF5GyvcfHGWl37ksVlG2YYOmVMyYsMR52jc++3WsrLwN1JN+ieBwavX KhOr6KMKyk9HiEAKPWbgi4013aV4xzExfrIELc2YptwSyxroZ8F7ZUZk3Lcx2zdDcWEz 2MOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hIfQ6LPv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m6si7038078plt.614.2022.01.14.17.01.52; Fri, 14 Jan 2022 17:02:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hIfQ6LPv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229819AbiANXVn (ORCPT + 99 others); Fri, 14 Jan 2022 18:21:43 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:34116 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbiANXVm (ORCPT ); Fri, 14 Jan 2022 18:21:42 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 56AB71F46D79 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1642202501; bh=IG6R5uw0yb3VLWtgH6sIypdBw8QjZrLQPe1BTwKhfbI=; h=From:To:Cc:Subject:Date:From; b=hIfQ6LPv3hxOBrIzE+2fY+y+U+gAwIVNKl5BeY1UMT2Tzf/VfiKoelgFvpydPfVeu YOgyyYx/a3JMIQnw1tpFjjmhNLc+1cye4D6C0e9/o8WFtEpO4Nl0CKYnIazi2QlyAX EZc7ApWAQ/t0NTFv6RCOah2tBe/Y9iEHMrdiFlmUnNJWzyTs0HA65nOWdNbY+VSeWp YMcuwxnEjxUkQhzm0ODVW2R8a+RYWiJlfUndo/JP9VAomYg6iu3T5DDC3fO2bwXPx/ NDdONaiKwFH9C4KUbkZjpHERQVv0HHyd0F4gNI3SsnOLqwiOusXcRKpIQ/3kX+5Wz7 yPHG312/z/VmQ== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Shuah Khan Cc: "Rafael J. Wysocki" , Viresh Kumar , linux-pm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= Subject: [PATCH] selftests: cpufreq: Write test output to stdout as well Date: Fri, 14 Jan 2022 18:21:26 -0500 Message-Id: <20220114232126.92043-1-nfraprado@collabora.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use 'tee' to send the test output to stdout in addition to the current output file. This makes the output easier to handle in automated test systems and is superior to only later dumping the output file contents to stdout, since this way the test output can be interleaved with other log messages, like from the kernel, so that chronology is preserved, making it easier to detect issues. Signed-off-by: NĂ­colas F. R. A. Prado --- tools/testing/selftests/cpufreq/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/cpufreq/main.sh b/tools/testing/selftests/cpufreq/main.sh index 31f8c9a76c5f..60ce18ed0666 100755 --- a/tools/testing/selftests/cpufreq/main.sh +++ b/tools/testing/selftests/cpufreq/main.sh @@ -194,5 +194,5 @@ prerequisite # Run requested functions clear_dumps $OUTFILE -do_test >> $OUTFILE.txt +do_test | tee -a $OUTFILE.txt dmesg_dumps $OUTFILE -- 2.34.1