All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>, qemu-block@nongnu.org
Cc: mreitz@redhat.com, quintela@redhat.com, dgilbert@redhat.com,
	stefanha@redhat.com, lvivier@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/3] qemu-iotests: Filter HMP readline escape characters
Date: Thu, 13 Apr 2017 12:38:50 -0500	[thread overview]
Message-ID: <c8d62cd3-73fc-4461-a3f1-c050908e9bec@redhat.com> (raw)
In-Reply-To: <1492104214-29994-3-git-send-email-kwolf@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]

On 04/13/2017 12:23 PM, Kevin Wolf wrote:
> The only thing the escape characters achieve is making the reference
> output unreadable and lines that are potentially so long that git
> doesn't want to put them into an email any more. Let's filter them out.

Hear! Hear!

> 
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
>  tests/qemu-iotests/028.out       | 2 +-
>  tests/qemu-iotests/130.out       | 4 ++--
>  tests/qemu-iotests/common.filter | 7 +++++++
>  tests/qemu-iotests/common.qemu   | 4 ++--
>  4 files changed, 12 insertions(+), 5 deletions(-)

Yay!  But I think you're incomplete:

What about 051, 068, 142, and 145?

(found by:
 git grep -l $'\e' tests/qemu-iotests/*.out
using bash as the shell)


> +++ b/tests/qemu-iotests/common.filter
> @@ -86,6 +86,13 @@ _filter_qmp()
>          -e '    QMP_VERSION'
>  }
>  
> +# readline makes HMP command strings so long that git complains
> +_filter_hmp()
> +{
> +    sed -e 's/(qemu).*\o33\[D/(qemu) /g' \

\oNN is a GNU sed-ism, as far as I can tell.  Is it portable to our
BSD/MacOS builds?

> +        -e 's/\o33\[K//g'
> +}


-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

  reply	other threads:[~2017-04-13 17:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-13 17:23 [Qemu-devel] [PATCH 0/3] migration: Call blk_resume_after_migration() for postcopy Kevin Wolf
2017-04-13 17:23 ` [Qemu-devel] [PATCH 1/3] " Kevin Wolf
2017-04-13 17:39   ` Eric Blake
2017-04-13 17:54     ` Kevin Wolf
2017-04-13 18:03       ` Eric Blake
2017-04-13 18:30         ` Kevin Wolf
2017-04-13 17:23 ` [Qemu-devel] [PATCH 2/3] qemu-iotests: Filter HMP readline escape characters Kevin Wolf
2017-04-13 17:38   ` Eric Blake [this message]
2017-04-13 17:44     ` Eric Blake
2017-04-19 14:45     ` Kevin Wolf
2017-04-13 17:23 ` [Qemu-devel] [PATCH 3/3] qemu-iotests: Test postcopy migration Kevin Wolf
2017-04-13 18:44   ` Eric Blake
2017-04-19 14:38     ` Kevin Wolf
2017-04-18 12:04   ` Dr. David Alan Gilbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c8d62cd3-73fc-4461-a3f1-c050908e9bec@redhat.com \
    --to=eblake@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=lvivier@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.