From a296ee44a1d6bbf72c87bbb6f1063272e0cc24bf Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Thu, 2 Jul 2020 18:44:50 +0300 Subject: [PATCH] Skip doc test when docs are not available. --- run_unittests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run_unittests.py b/run_unittests.py index 2f9fb7f4b..5fd790c42 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -4789,6 +4789,9 @@ recommended as it is not supported on some platforms''') Test that all listed meson commands are documented in Commands.md. ''' + # The docs directory is not in release tarballs. + if not os.path.isdir('docs'): + raise unittest.SkipTest('Doc directory does not exist.') doc_path = 'docs/markdown_dynamic/Commands.md' md = None