aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-07-02 18:44:50 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2020-07-02 20:02:50 +0300
commita296ee44a1d6bbf72c87bbb6f1063272e0cc24bf (patch)
tree457d98833c5fbece52b918137da59e08c7619ef6 /run_unittests.py
parent026e386ec2bd79fbf4fcd21e93df19c5a22f3ebf (diff)
downloadmeson-a296ee44a1d6bbf72c87bbb6f1063272e0cc24bf.zip
meson-a296ee44a1d6bbf72c87bbb6f1063272e0cc24bf.tar.gz
meson-a296ee44a1d6bbf72c87bbb6f1063272e0cc24bf.tar.bz2
Skip doc test when docs are not available.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 2f9fb7f..5fd790c 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