From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Subject: [PATCH v3 9/9] run_tests: log stderr Date: Fri, 15 Apr 2016 22:52:51 +0200 Message-ID: <1460753571-20732-10-git-send-email-rkrcmar@redhat.com> References: <1460753571-20732-1-git-send-email-rkrcmar@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Paolo Bonzini , Andrew Jones To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:57537 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751683AbcDOUxc (ORCPT ); Fri, 15 Apr 2016 16:53:32 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 21A49C084AC7 for ; Fri, 15 Apr 2016 20:53:27 +0000 (UTC) In-Reply-To: <1460753571-20732-1-git-send-email-rkrcmar@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: After recent changes to logging, seeing it all the time doesn't help. We could print one line in summary if stderr is missed. Signed-off-by: Radim Kr=C4=8Dm=C3=A1=C5=99 --- run_tests.sh | 1 + scripts/mkstandalone.sh | 1 + scripts/runtime.bash | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index 2a0082163423..3592db317897 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -47,6 +47,7 @@ while getopts "g:hv" opt; do esac done =20 +RUNTIME_log_stderr=3D'test.log' if [ "$PRETTY_PRINT_STACKS" =3D "yes" ]; then RUNTIME_log_stdout=3D'>(./scripts/pretty_print_stacks.py $kernel >> t= est.log)' else diff --git a/scripts/mkstandalone.sh b/scripts/mkstandalone.sh index ee01fe0c7777..af2b8f43743c 100755 --- a/scripts/mkstandalone.sh +++ b/scripts/mkstandalone.sh @@ -70,6 +70,7 @@ generate_test () =20 echo "exec {stdout}>&1" echo "RUNTIME_log_stdout=3D'>(cat >&\$stdout)'" + echo "RUNTIME_log_stderr=3D>(cat >&2)" =20 cat scripts/runtime.bash =20 diff --git a/scripts/runtime.bash b/scripts/runtime.bash index fc4be91d8727..ff2d98b547b5 100644 --- a/scripts/runtime.bash +++ b/scripts/runtime.bash @@ -61,7 +61,8 @@ function run() =20 # extra_params in the config file may contain backticks that need = to be # expanded, so use eval to start qemu. Same for $RUNTIME_log_stdo= ut. - summary=3D$(eval $cmdline > >(eval "tee -a $RUNTIME_log_stdout" | = extract_summary)) + summary=3D$(eval $cmdline > >(eval "tee -a $RUNTIME_log_stdout" | = extract_summary) \ + 2>> $RUNTIME_log_stderr) ret=3D$? =20 if [ $ret -eq 0 ]; then --=20 2.8.1