aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-04-23 03:24:18 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-04-23 03:24:26 +0300
commit01865899e5283b3e0b3181ddb250c348a5bafa84 (patch)
treef01e9d9596b12f824858fb1e7954f3eef71dfe27 /run_unittests.py
parent83ffb3ea02eac7e2634f2f61c80f2792d185562a (diff)
downloadmeson-01865899e5283b3e0b3181ddb250c348a5bafa84.zip
meson-01865899e5283b3e0b3181ddb250c348a5bafa84.tar.gz
meson-01865899e5283b3e0b3181ddb250c348a5bafa84.tar.bz2
Skip snippet validation if docs dir does not exist.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 5fdc8c7..3f80f74 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -439,6 +439,7 @@ class InternalTests(unittest.TestCase):
kwargs = {'sources': [1, 2, 3], 'pch_sources': [4, 5, 6]}
self.assertEqual([[1, 2, 3], [4, 5, 6]], extract(kwargs, 'sources', 'pch_sources'))
+ @unittest.skipIf(not os.path.isdir('docs'), 'Doc dir not found, presumably because this is a tarball release.')
def test_snippets(self):
hashcounter = re.compile('^ *(#)+')
snippet_dir = Path('docs/markdown/snippets')