Revision: 2926
Author: pekka.klarck
Date: Mon Apr 12 04:06:25 2010
Log: new helpers for partial stdout/stderr regexp matches
http://code.google.com/p/robotframework/source/detail?r=2926

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

=======================================
--- /trunk/atest/resources/resource.txt Thu Apr  8 05:43:52 2010
+++ /trunk/atest/resources/resource.txt Mon Apr 12 04:06:25 2010
@@ -171,6 +171,12 @@
     ${exp} =  Catenate  @{expected}
     ${file} =  Get Output File  ${path}
     Should Match Regexp  ${file.strip()}  ^${exp}$
+
+Check File Contains Regexp
+    [Arguments]  ${path}  @{expected}
+    ${exp} =  Catenate  @{expected}
+    ${file} =  Get Output File  ${path}
+    Should Match Regexp  ${file.strip()}  ${exp}

 File Should Be Equal To
     [Arguments]  ${path}  @{expected}
@@ -193,6 +199,10 @@
 Check Stderr Matches Regexp
     [Arguments]  @{expected}
     Check File Matches Regexp  ${STDERR_FILE}  @{expected}
+
+Check Stderr Contains Regexp
+    [Arguments]  @{expected}
+    Check File Contains Regexp  ${STDERR_FILE}  @{expected}

 Check Stdout Contains
     [Arguments]  @{expected}
@@ -205,6 +215,10 @@
 Check Stdout Matches Regexp
     [Arguments]  @{expected}
     Check File Matches Regexp  ${STDOUT_FILE}  @{expected}
+
+Check Stdout Contains Regexp
+    [Arguments]  @{expected}
+    Check File Contains Regexp  ${STDOUT_FILE}  @{expected}

 Get Syslog
     ${file} =  Get Output File  ${SYSLOG_FILE}

Reply via email to