From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH v3 9/9] run_tests: log stderr Date: Tue, 10 May 2016 13:41:45 +0200 Message-ID: <5731C8F9.3020204@redhat.com> References: <1460753571-20732-1-git-send-email-rkrcmar@redhat.com> <1460753571-20732-10-git-send-email-rkrcmar@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Andrew Jones To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , kvm@vger.kernel.org Return-path: Received: from mail-wm0-f66.google.com ([74.125.82.66]:33832 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751414AbcEJLls (ORCPT ); Tue, 10 May 2016 07:41:48 -0400 Received: by mail-wm0-f66.google.com with SMTP id n129so2219381wmn.1 for ; Tue, 10 May 2016 04:41:48 -0700 (PDT) In-Reply-To: <1460753571-20732-10-git-send-email-rkrcmar@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 15/04/2016 22:52, Radim Kr=C4=8Dm=C3=A1=C5=99 wrote: > 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 nee= d to be > # expanded, so use eval to start qemu. Same for $RUNTIME_log_st= dout. > - 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) Whoa, so this uses the outer eval? Perhaps the 2>> should move before the >. Paolo