bneradt commented on a change in pull request #6931:
URL: https://github.com/apache/trafficserver/pull/6931#discussion_r445033763
##########
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:
That's a good point. I should look into pre-compiling the regex.
----------------------------------------------------------------
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]