Skip to content

Commit 20a1a5e

Browse files
authored
Merge pull request #3051 from vkarak/doc/typo-sanity-patterns
[doc] Fix typo in docs about sanity patterns debugging
2 parents 21d1806 + 8188170 commit 20a1a5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial_tips_tricks.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ With the executable's output available in the stage directory, one can simply us
115115
... test_output = ''.join(f.readlines())
116116
...
117117
>>> # Evaluate the regular expression
118-
>>> re.find(the_regex_pattern, test_output)
118+
>>> re.findall(the_regex_pattern, test_output, re.MULTILINE)
119119
120120
Alternatively to using the `re <https://docs.python.org/3/library/re.html>`_ module, one could use all the :mod:`~reframe.utility.sanity` utility provided by ReFrame directly from the Python shell.
121121
In order to do so, if ReFrame was installed manually using the ``bootstrap.sh`` script, one will have to make all the Python modules from the ``external`` directory accessible to the Python shell as shown below.

0 commit comments

Comments
 (0)