ywkaras commented on a change in pull request #6931:
URL: https://github.com/apache/trafficserver/pull/6931#discussion_r444911071
##########
File path: tests/gold_tests/autest-site/when.test.ext
##########
@@ -19,18 +19,66 @@ When extensions.
from autest.api import AddWhenFunction
import hosts.output as host
+import os
+import re
-def FileContains(haystack, needle):
+def FileContains(haystack, needle, desired_count=1):
Review comment:
Does Au Test allow this to be a functor? Seems like it should
pre-compile the regular expression, and keep track of how much of the file it
has already scanned. But perhaps beyond the scope of this PR.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]