From: Paolo Bonzini Subject: Re: [PATCH kvm-unit-tests 3/3] report: move blank line to better side of SUMMARY Date: Thu, 22 Dec 2016 12:13:32 +0100 Message-ID: References: <20161219162305.20455-1-drjones@redhat.com> <20161219162305.20455-4-drjones@redhat.com> <20161222105329.vci64zdghrasvr2f@kamzik.brq.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: rkrcmar@redhat.com, lvivier@redhat.com, thuth@redhat.com To: Andrew Jones , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:49326 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750792AbcLVLNg (ORCPT ); Thu, 22 Dec 2016 06:13:36 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (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 8C6014E4D9 for ; Thu, 22 Dec 2016 11:13:35 +0000 (UTC) In-Reply-To: <20161222105329.vci64zdghrasvr2f@kamzik.brq.redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 22/12/2016 11:53, Andrew Jones wrote: >> summary=$(eval $cmdline 2> >(RUNTIME_log_stderr) \ >> > >(tee >(RUNTIME_log_stdout $kernel) | extract_summary)) >> ret=$? >> + [ "$STANDALONE" != "yes" ] && echo > >(RUNTIME_log_stdout $kernel) > Hmm, even though this works, because of how we define RUNTIME_log_stdout > (eventually using '>> test.log'), I should have used '>>' here as well > for correctness. I think it's okay, you're effectively writing to a pipe and the pipe is opened by this echo invocation. If you do a strace you can see that it's basically echo | RUNTIME_log_stdout Here: pipe([3, 4]) = 0 fcntl(63, F_GETFD) = -1 EBADF (Bad file descriptor) dup2(4, 63) = 63 close(4) = 0 Thanks, Paolo > Paolo, > > Assuming we want to merge this patch, will you fix it up on commit? Or > should I send a v2?