Updates:
Status: Pending
Comment #1 on issue 1001 by pekka.klarck: OperatingSystem library "run"
and "get environment variable" not working in Windows 7
http://code.google.com/p/robotframework/issues/detail?id=1001
This is really strange. It assume that the problem is somehow related to
your environment and not to Robot or OperatingSystem because:
1) I executed similar (and attached) test without problems on WinXP.
2) OperatingSystem.Run is tested thoroughly by acceptance tests that run OK
also on Win7.
3) OperatingSystem.Run uses Python's os.popen function
(http://docs.python.org/library/os.html#os.popen) to run the command. If it
somehow ends up calling sh, then your Python installation is somehow
corrupted.
My guess is that somehow you end up running Robot using Python that runs on
Cygwin. Could you verify what interpreter you use? One way to check that is
looking at the starting <robot> tag in the generated output.xml. It has
generator attribute that shows also the platform.
Finally, I'm not sure is parsing the output returned by ping the best way
to resolve the IP address. For a way to do that pretty easily on Python see
e.g. this StackOverflow question:
http://stackoverflow.com/questions/166506/finding-local-ip-addresses-using-pythons-stdlib
Attachments:
ping.txt 154 bytes