From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH v3 8/9] run_tests: print summary Date: Tue, 10 May 2016 16:32:45 +0200 Message-ID: <5731F10D.5030300@redhat.com> References: <1460753571-20732-1-git-send-email-rkrcmar@redhat.com> <1460753571-20732-9-git-send-email-rkrcmar@redhat.com> <20160419071947.3v6fjnbdln47ddno@hawk.localdomain> <5731C9F1.80003@redhat.com> <20160510124145.GC12472@potion> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Andrew Jones , kvm@vger.kernel.org To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Return-path: Received: from mail-wm0-f44.google.com ([74.125.82.44]:35620 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751888AbcEJOcu (ORCPT ); Tue, 10 May 2016 10:32:50 -0400 Received: by mail-wm0-f44.google.com with SMTP id e201so180877963wme.0 for ; Tue, 10 May 2016 07:32:49 -0700 (PDT) In-Reply-To: <20160510124145.GC12472@potion> Sender: kvm-owner@vger.kernel.org List-ID: On 10/05/2016 14:41, Radim Kr=C4=8Dm=C3=A1=C5=99 wrote: >> > eval $cmdline 2>> $RUNTIME_log_stderr \ >> > | eval tee -a "$RUNTIME_log_stdout" | extract_summar= y >> >=20 >> > Anything I am missing? >> >=20 >>>> >>> ret=3D$? > Simple pipeline would not return the return value of `eval $cmdline`,= so > it seemed nicer with a redirection. Right... Two more attempts: eval "$cmdline 2>> $RUNTIME_log_stderr > >(tee -a $RUNTIME_log_stdout | extract_summary)" (eval $cmdline) 2> >($RUNTIME_cmd_stderr) > >(tee >($RUNTIME_cmd_stdout) | extract_summary)" (The latter requiring an extra useless uses of cat for test.log). Would any of these work fine? Paolo