WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] [XM] Control characters make xm tests fail

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] [XM] Control characters make xm tests fail
From: Stefan Berger <stefanb@xxxxxxxxxx>
Date: Mon, 06 Aug 2007 08:43:42 -0400
Cc: Keir Fraser <keir@xxxxxxxxxxxxx>
Delivery-date: Mon, 06 Aug 2007 05:33:26 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On my FC7 installation some of the test in the xm test suite fail for no
apparent reason. The problem is that the python 'readline' module puts
out control characters that confuse code that parses the output of some
of the xm commands that are being run. The readline module dumps those
characters upon import. The attached patch works around this problem.

Here's what I get in out.txt when doing 'python 2>&1 | tee out.txt' and
'import readline' on the python command line:

Python 2.5 (r25:51908, Apr 10 2007, 10:29:13)
[GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
[[?1034h>>> >>>

The characters before the '>>>' above are those printed by that version
of 'readline' and remain invisible on the screen but appear in the file
and confuse the xm test suite parser.

Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>

Attachment: xm_test_fc7_fix.diff
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] [XM] Control characters make xm tests fail, Stefan Berger <=