You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by el...@apache.org on 2013/07/31 03:59:50 UTC

[30/50] [abbrv] git commit: ACCUMULO-1526 provide an xml report format

ACCUMULO-1526 provide an xml report format

git-svn-id: https://svn.apache.org/repos/asf/accumulo/branches/1.4@1495439 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/a329a7a5
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/a329a7a5
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/a329a7a5

Branch: refs/heads/1.5.1-SNAPSHOT
Commit: a329a7a56b8d0f821ac2db93c4610d89ade3dbb1
Parents: a91173b
Author: Eric C. Newton <ec...@apache.org>
Authored: Fri Jun 21 13:45:37 2013 +0000
Committer: Eric C. Newton <ec...@apache.org>
Committed: Fri Jun 21 13:45:37 2013 +0000

----------------------------------------------------------------------
 test/system/auto/run.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/a329a7a5/test/system/auto/run.py
----------------------------------------------------------------------
diff --git a/test/system/auto/run.py b/test/system/auto/run.py
index 214cf3a..5a0678b 100755
--- a/test/system/auto/run.py
+++ b/test/system/auto/run.py
@@ -241,6 +241,8 @@ def main():
                       help='Do not clean up at the end of the test.')
     parser.add_option('-s', '--start', dest='start', default=None, 
                       help='Start the test list at the given test name')
+    parser.add_option('-x', '--xml', dest='xmlreport', default=False, action='store_true',
+                      help='Output tests results to xml (jenkins conpatible)')
     
     allTests = getTests()
     options = parseArguments(parser, allTests)
@@ -268,7 +270,12 @@ def main():
        print "ZOOKEEPER_HOME needs to be set"
        sys.exit(1)
 
-    runner = TestRunner()
+    if options.xmlreport:
+        import xmlrunner
+        runner = xmlrunner.XMLTestRunner(output='test-reports')
+    else:    
+        runner = TestRunner()
+
     
     suite = unittest.TestSuite()
     map(suite.addTest, filtered)