diff --git a/docs/source/WritingTests.rst b/docs/source/WritingTests.rst index 7537a9db405304e32dcb0f5c0bb9a9fabffd3b6b..68f16ca62d95400fd9f1debfa88c71d3ed6f9b5f 100644 --- a/docs/source/WritingTests.rst +++ b/docs/source/WritingTests.rst @@ -213,6 +213,9 @@ Avocado looks for data files in the order defined at from most specific one, to most generic one. That means that, if a variant is being used, the **variant** directory is used first. Then the **test** level directory is attempted, and finally the **file** level directory. +Additionally you can use ``get_data(filename, must_exist=False)`` to get +expected location of a possibly non-existing file, which is useful when +you intend to create it. .. tip:: When running tests you can use the ``--log-test-data-directories`` command line option log the test data directories that will be used