diff options
Diffstat (limited to 'test/runner/lib/sanity/rstcheck.py')
-rw-r--r-- | test/runner/lib/sanity/rstcheck.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/runner/lib/sanity/rstcheck.py b/test/runner/lib/sanity/rstcheck.py index a6a4226cf1..8dd6a5d828 100644 --- a/test/runner/lib/sanity/rstcheck.py +++ b/test/runner/lib/sanity/rstcheck.py @@ -17,6 +17,7 @@ from lib.util import ( parse_to_list_of_dict, display, read_lines_without_comments, + INSTALL_ROOT, ) from lib.config import ( @@ -40,7 +41,7 @@ class RstcheckTest(SanitySingleVersion): display.warning('Skipping rstcheck on unsupported Python version %s.' % args.python_version) return SanitySkipped(self.name) - ignore_file = 'test/sanity/rstcheck/ignore-substitutions.txt' + ignore_file = os.path.join(INSTALL_ROOT, 'test/sanity/rstcheck/ignore-substitutions.txt') ignore_substitutions = sorted(set(read_lines_without_comments(ignore_file, remove_blank_lines=True))) paths = sorted(i.path for i in targets.include if os.path.splitext(i.path)[1] in ('.rst',)) |