Revision: f441f5b83c4d
Branch: default
Author: Mika Hänninen <[email protected]>
Date: Wed May 15 01:57:26 2013
Log: process lib: added test for UnrecognizedParameterError
http://code.google.com/p/robotframework/source/detail?r=f441f5b83c4d
Modified:
/atest/robot/standard_libraries/process/test_process_library.txt
/atest/testdata/standard_libraries/process/test_process_library.txt
=======================================
--- /atest/robot/standard_libraries/process/test_process_library.txt Wed
May 15 01:25:09 2013
+++ /atest/robot/standard_libraries/process/test_process_library.txt Wed
May 15 01:57:26 2013
@@ -37,7 +37,10 @@
Setting Environment With Multiple Values Using Dictionary
Check Test Case ${TESTNAME}
-
+
+Unsupported Arguments Should Cause Error
+ Check Test Case ${TESTNAME}
+
Escaping equals sign
Check Test Case ${TESTNAME}
=======================================
--- /atest/testdata/standard_libraries/process/test_process_library.txt Wed
May 15 01:25:09 2013
+++ /atest/testdata/standard_libraries/process/test_process_library.txt Wed
May 15 01:57:26 2013
@@ -84,6 +84,11 @@
Should Match ${result.stdout} *special_var*
Should Match ${result.stdout} *diiba2*
+Unsupported Arguments Should Cause Error
+ ${setenv}= Create Dictionary special_var spessu
+ Run Keyword And Expect Error UnrecognizedParameterError: * Run
Process python -c "import os; print os.environ;" shell=True
genv=${setenv}
+ Run Keyword And Expect Error UnrecognizedParameterError: * Run
Process python -c "import os; print os.environ;" shellx=True
+
Escaping equals sign
${result}= Run Process python -c
print 'stderr\=bar.buu' shell=True
Result should equal ${result} stdout=*stderr=bar.buu*
--
---
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.