From: Ian Jackson Subject: Re: [PATCH v2 5/5] xl: test script for the cpumap parser (for vCPU pinning) Date: Tue, 10 Sep 2013 18:52:28 +0100 Message-ID: <21039.23644.878700.819950@mariner.uk.xensource.com> References: <20130906154725.10218.45008.stgit@hit-nxdomain.opendns.com> <20130906155600.10218.27695.stgit@hit-nxdomain.opendns.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130906155600.10218.27695.stgit@hit-nxdomain.opendns.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: George Dunlap , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Dario Faggioli writes ("[PATCH v2 5/5] xl: test script for the cpumap parser (for vCPU pinning)"): > This commit introduces "check-xl-vcpupin-parse" for helping > verifying and debugging the (v)CPU bitmap parsing code in xl. > > The script runs "xl -N vcpu-pin 0 all " > repeatedly, with various input strings, and checks that the > output is as expected. This is a nice idea. But can we please have this use the same random seed each time, and/or report the seed ? Otherwise you can get a very annoying situation where a test fails but you can't repro it... I think it would be better, TBH, if you separated out the test generation from the execution. check-xl-vif-parse et al have the test data as an annex to the harness material, but you could have it in a separate file which you could have a script to generate. Also the use of "sleep 1" needs to go. Thanks, Ian.