Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1498 by juho.saa...@gmail.com: "Run command" keywords fails in
Windows XP when using jython interpreter because of "2>%1"
http://code.google.com/p/robotframework/issues/detail?id=1498
Problem in short: Run commend (and it's variations) and also Start process
keywords fail in Windows XP when using those with jython interpreter.
Especially problematic because dependency management is made with Maven,
and it uses jython interpreter to run tests.
Running of tests works fine with Windows 7 (64 bit) and in CentOS linux
(both using Maven and robotframerwork-maven-plugin version 1.2).
Versions:
Microsoft Windows XP [Version 5.1.2600] (Microsoft's free virtual machine
from modern.ie)
Robot Framework 2.8.1 (Python 2.7.5 on win32)
Robot Framework 2.8.1 (Jython 2.5.3 on java1.6.0_45)
Test for reproducing:
*** Settings ***
Library OperatingSystem
*** Test Cases ***
One command
${rc} ${output} Run And Return Rc And Output dir
Output, pybot:
tarting test: CMD test.One command
20130730 23:21:44.102 : INFO : Running command 'dir 2>&1'
20130730 23:21:44.122 : INFO : ${rc} = 0
20130730 23:21:44.122 : INFO :
${output} = Volume in drive C has no label.
Volume Serial Number is XXX
Directory of C:\work\test
07/30/2013 11:16 PM <DIR> .
07/30/2013 11:16 PM <DIR> ..
07/30/2013 11:16 PM...
Ending test: CMD test.One command
Output, jybot:
Starting test: CMD test.One command
20130730 23:17:14.274 : INFO : Running command 'dir 2>&1'
20130730 23:17:14.304 : INFO : File Not Found
20130730 23:17:14.314 : INFO : ${rc} = 1
20130730 23:17:14.314 : INFO :
${output} = Volume in drive C has no label.
Volume Serial Number is XXX
Directory of C:\work\test
Ending test: CMD test.One command
Somehow "2>&1" is in jybot thought as a parameter to command, which causes
those to break. When running commands with multiple arguments error
messages are longer, e.g. when executing java commands (example below).
tarting test: CMD test.One command
20130730 23:28:29.495 : INFO : Running command 'java -cp
C:\work\maven\repository\com\h2database\h2\1.3.172\h2-1.3.172.jar
org.h2.tools.Shell -url "jdbc:h2:tcp://localhost:5432/mem:test;SCHEMA=TEST"
-sql "SELECT * FROM TEST.USERS;" 2>&1'
20130730 23:28:29.655 : INFO :
Exception in thread "main" org.h2.jdbc.JdbcSQLException: Feature not
supported: "2>&1" [50100-172]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
at org.h2.message.DbException.get(DbException.java:169)
at org.h2.message.DbException.get(DbException.java:146)
at org.h2.util.Tool.throwUnsupportedOption(Tool.java:66)
at org.h2.util.Tool.showUsageAndThrowUnsupportedOption(Tool.java:56)
at org.h2.tools.Shell.runTool(Shell.java:140)
at org.h2.tools.Shell.main(Shell.java:80)
20130730 23:28:29.665 : INFO : ${rc} = 1
20130730 23:28:29.665 : INFO :
${output} = Interactive command line tool to access a database using JDBC.
Usage: java org.h2.tools.Shell <options>
Options are case sensitive. Supported options are:
[-help] or [-?] Print the list of opti...
Ending test: CMD test.One command
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
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 robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.