Revision: 2826
Author: laukpe
Date: Wed Mar 31 08:29:10 2010
Log: 1) Make output dir ASCII only because environment variable created based on it later cannot cannot contain non-ASCII chars at least on windows, 2) New helper
http://code.google.com/p/robotframework/source/detail?r=2826

Modified:
 /trunk/atest/resources/resource.txt

=======================================
--- /trunk/atest/resources/resource.txt Sat Mar 27 18:24:39 2010
+++ /trunk/atest/resources/resource.txt Wed Mar 31 08:29:10 2010
@@ -74,7 +74,7 @@
 Set Variables
     [Arguments]  ${name}
     ${OUTDIR} =  Join Path  ${OUTPUTDIR}  output  ${name}
- Set Global Variable $OUTDIR ${OUTDIR.replace('?', '_') .replace('*', '_')} + Set Global Variable $OUTDIR ${OUTDIR.encode('ascii', 'ignore').replace('?', '_') .replace('*', '_')}
     Create Directory  ${OUTDIR}
     Set Suite Variable  $OUTFILE  ${OUTDIR}${/}output.xml
     Set Suite Variable  $STDOUT_FILE  ${OUTDIR}${/}stdout.txt
@@ -151,6 +151,12 @@
     ${exp} =  Catenate  @{expected}
     ${file} =  Get File  ${path}
     Should Match Regexp  ${file.strip()}  ^${exp}$
+
+File Should Be Equal To
+    [Arguments]  ${path}  @{expected}
+    ${content} =  Log File  ${path}
+    ${exp} =  Catenate  @{expected}
+    Should Be Equal  ${content}  ${exp}

 Stderr Should Be Empty
     ${stderr} =  Get Stderr


--
To unsubscribe, reply using "remove me" as the subject.

Reply via email to