From: Anthony PERARD <anthony.perard@citrix.com>
To: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: [OSSTEST PATCH v13 19/24] TestSupport: Implement target_subunit_cmd a subunit stream parser into substeps
Date: Thu, 27 Jul 2017 15:42:47 +0100 [thread overview]
Message-ID: <20170727144246.GP1587@perard.uk.xensource.com> (raw)
In-Reply-To: <22904.47174.313726.104930@mariner.uk.xensource.com>
On Wed, Jul 26, 2017 at 04:41:58PM +0100, Ian Jackson wrote:
> Anthony PERARD writes ("Re: [OSSTEST PATCH v13 19/24] TestSupport: Implement target_subunit_cmd a subunit stream parser into substeps"):
> > I think I start by looking at what kind of characters could be part of
> > type and sub-type, and just start writing a more complicated regex.
> >
> > So is the following would be enough for you?
> > m{^Content-Type: [^/ ]+/[^/ ]+(?:;.+)?$}
>
> Why do you need to check the at all ? I think, according to the spec,
> that the only thing which can occur here is "Content-Type: something"
> or "]". What would be wrong with
> m{^content-type:}i
> ?
Ok, will go with that.
> > > > + # Read chunks of a part
> > > > + while (<$stdout>) {
> > > > + if (/^([0-9A-F]+)\r$/i) {
> > > > + my $chunk_size = hex($1);
> > >
> > > What makes you think the digits are in hex ?
> >
> > I tried with [0-9] (because DIGITS), but that was not enought. Then I've
> > check the subunit implementation, there are using "%X" which is hex.
>
> Wow. Can you put a comment next to this please ? Something like
>
> # The chunk size is in hex, even though this does not seem to be
> # documented in the subunit specification.
>
> perhaps.
I don't think there is a specification for subunit, beside the source
code. In the README of the project, it is called a "description", and
there is even "When in doubt, refer the source".
But I guess I can add the comment.
--
Anthony PERARD
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-07-27 14:43 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-25 11:57 [OSSTEST PATCH v13 00/24] Have OpenStack tested on top of xen's master and libvirt's master Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 01/24] ts-openstack-deploy: Deploy OpenStack on a host with devstack Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 02/24] ts-openstack-tempest: Run Tempest to check OpenStack Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 03/24] ts-openstack-deploy: Set http proxy Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 04/24] TestSupport: provide target_https_mitm_proxy_cert_path Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 05/24] ts-openstack-deploy: set CURL_CA_BUNDLE Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 06/24] ts-openstack-deploy: Keep CURL_CA_BUNDLE when sudo is called Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 07/24] ts-openstack-deploy: Try to disable use of SYSTEMD Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 08/24] ts-kernel-build: Enable network related modules for Neutron Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 09/24] ts-openstack-deploy: Switch to Neutron for network Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 10/24] ts-openstack-deploy: Increase open fd limit for RabbitMQ Anthony PERARD
2017-07-25 17:41 ` Ian Jackson
2017-07-25 11:57 ` [OSSTEST PATCH v13 11/24] ts-openstack-deploy: Apply a Tempest patch Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 12/24] ts-openstack-deploy: Ignore libvirt-python version and use latest Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 13/24] ts-openstack-tempest: Fix tempest invocation Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 14/24] ts-openstack-tempest: Update list of skipped tests Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 15/24] ts-openstack-deploy: Move logs to /var/log/openstack Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 16/24] ts-logs-capture: Capture OpenStack logs Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 17/24] ts-openstack-deploy: Increase devstack timeout Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 18/24] TestSupport: Introduce target_cmd_stashed Anthony PERARD
2017-07-25 18:26 ` Ian Jackson
2017-07-26 15:22 ` Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 19/24] TestSupport: Implement target_subunit_cmd a subunit stream parser into substeps Anthony PERARD
2017-07-25 18:00 ` Ian Jackson
2017-07-26 15:03 ` Anthony PERARD
2017-07-26 15:41 ` Ian Jackson
2017-07-27 14:42 ` Anthony PERARD [this message]
2017-07-27 16:12 ` Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 20/24] ts-openstack-tempest: Use target_subunit_cmd Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 21/24] Create a flight to test OpenStack with xen-unstable and libvirt Anthony PERARD
2017-07-25 18:09 ` Ian Jackson
2017-07-26 15:15 ` Anthony PERARD
2017-07-26 15:44 ` Ian Jackson
2017-07-25 11:57 ` [OSSTEST PATCH v13 22/24] New branch openstack-ocata Anthony PERARD
2017-07-25 18:22 ` Ian Jackson
2017-07-25 11:57 ` [OSSTEST PATCH v13 23/24] make-flight: Increase dom0_mem for openstack flight Anthony PERARD
2017-07-25 11:57 ` [OSSTEST PATCH v13 24/24] openstack tests: Don't run them on arm* Anthony PERARD
2017-07-25 18:18 ` Ian Jackson
2017-07-26 15:19 ` Anthony PERARD
2017-07-26 15:45 ` Ian Jackson
2017-07-25 18:27 ` [OSSTEST PATCH v13 00/24] Have OpenStack tested on top of xen's master and libvirt's master Ian Jackson
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=20170727144246.GP1587@perard.uk.xensource.com \
--to=anthony.perard@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xenproject.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).