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-changelog

[Xen-changelog] Added file missed on commit of earlier patch by Dan Smit

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Added file missed on commit of earlier patch by Dan Smith.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 08 Nov 2005 13:00:14 +0000
Delivery-date: Tue, 08 Nov 2005 13:01:20 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 8e170309005301ab9a4149846806b5fbde7b3b25
# Parent  53f52fc28f8bc4d0db0163ac106ddd3a75215c35
Added file missed on commit of earlier patch by Dan Smith.

diff -r 53f52fc28f8b -r 8e1703090053 tools/xm-test/tests/help/06_help_allcmds.py
--- /dev/null   Tue Nov  8 11:28:19 2005
+++ b/tools/xm-test/tests/help/06_help_allcmds.py       Tue Nov  8 11:30:38 2005
@@ -0,0 +1,44 @@
+#!/usr/bin/python
+
+# Copyright (C) International Business Machines Corp., 2005
+# Author: Dan Smith <danms@xxxxxxxxxx>
+
+from XmTestLib import *
+
+import re
+
+MAX_ARGS = 10
+
+# These commands aren't suitable for this test, so we
+# ignore them
+skipcommands = ["top", "log"]
+
+status, output = traceCommand("xm help --long")
+
+commands = []
+badcommands = []
+
+lines = output.split("\n")
+for l in lines:
+    match = re.match("^    ([a-z][^ ]+).*$", l)
+    if match:
+        commands.append(match.group(1))
+
+for c in commands:
+    if c in skipcommands:
+        continue
+
+    arglist = ""
+    for i in range(0,MAX_ARGS+1):
+        if i > 0:
+            arglist += "%i " % i
+
+        status, output = traceCommand("xm %s %s" % (c, arglist))
+
+        if output.find("Traceback") != -1:
+            badcommands.append(c + " " + arglist)
+            if verbose:
+                print "Got Traceback: %s %s" % (c, arglist)
+
+if badcommands:
+    FAIL("Got a traceback on: %s" % str(badcommands))

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Added file missed on commit of earlier patch by Dan Smith., Xen patchbot -unstable <=