Revision: 3935
Author: janne.t.harkonen
Date: Thu Aug 26 05:53:39 2010
Log: rename function to allow importing robot.rebot module, issue 625
http://code.google.com/p/robotframework/source/detail?r=3935

Modified:
 /trunk/src/robot/__init__.py

=======================================
--- /trunk/src/robot/__init__.py        Mon Aug 23 09:00:44 2010
+++ /trunk/src/robot/__init__.py        Thu Aug 26 05:53:39 2010
@@ -39,8 +39,9 @@
     _run_or_rebot_from_cli(run, args, usage, pythonpath='pythonpath')

 def rebot_from_cli(args, usage):
+    print args
     LOGGER.info(get_full_version('Rebot'))
-    _run_or_rebot_from_cli(rebot, args, usage)
+    _run_or_rebot_from_cli(run_rebot, args, usage)

 def _run_or_rebot_from_cli(method, cliargs, usage, **argparser_config):
     LOGGER.register_file_logger()
@@ -115,7 +116,7 @@
     return suite


-def rebot(*datasources, **options):
+def run_rebot(*datasources, **options):
"""Creates reports/logs from given Robot output files with given options.

Given input files are paths to Robot output files similarly as when running
@@ -123,8 +124,8 @@
     their names are same as long command line options without hyphens.

     Examples:
-    rebot('/path/to/output.xml')
- rebot('/path/out1.xml', '/path/out2.xml', report='myrep.html', log='NONE')
+    run_rebot('/path/to/output.xml')
+ run_rebot('/path/out1.xml', '/path/out2.xml', report='myrep.html', log='NONE')

     Equivalent command line usage:
     rebot /path/to/output.xml

Reply via email to