Revision: 30ec57d1b9fa
Branch: default
Author: Pekka Klärck
Date: Thu Dec 12 23:22:52 2013 UTC
Log: rundevel.sh -> rundevel.py
- supports windows
- supports any interpreter (e.g. `jython rundevel.py --version`)
- supports rebot (e.g. `./rundevel.py rebot --version`)
http://code.google.com/p/robotframework/source/detail?r=30ec57d1b9fa
Added:
/rundevel.py
Deleted:
/rundevel.sh
=======================================
--- /dev/null
+++ /rundevel.py Thu Dec 12 23:22:52 2013 UTC
@@ -0,0 +1,24 @@
+#!/usr/bin/env python
+
+from os.path import abspath, dirname, exists, join
+from os import mkdir, putenv
+import sys
+
+curdir = dirname(abspath(__file__))
+tmp = join(curdir, 'tmp')
+if not exists(tmp):
+ mkdir(tmp)
+
+sys.path.insert(0, join(curdir, 'src'))
+from robot import run_cli, rebot_cli
+
+if len(sys.argv) > 1 and sys.argv[1] == 'rebot':
+ runner = rebot_cli
+ args = sys.argv[2:]
+else:
+ runner = run_cli
+ args = ['--pythonpath',
join(curdir, 'atest', 'testresources', 'testlibs'),
+ '--pythonpath', tmp, '--loglevel', 'DEBUG'] + sys.argv[1:]
+
+putenv('ROBOT_SYSLOG_FILE', join(tmp, 'syslog.txt'))
+runner(['--outputdir', 'tmp'] + args)
=======================================
--- /rundevel.sh Fri Nov 1 11:29:39 2013 UTC
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-base=`dirname $0`
-ROBOT_SYSLOG_FILE=$base/tmp/syslog.txt python $base/src/robot/run.py -P
$base/atest/testresources/testlibs -P $base/tmp -L debug -d $base/tmp "$@"
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.