aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-12-09 18:38:31 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-12-09 19:55:18 +0200
commit03311e6d8c7e6e84ef2f5474dc4b39d9cb97d2e9 (patch)
tree82e598cad831be45ab831e913273b942b764a843 /run_unittests.py
parentf1116bc16a0819ddb427789b8f21ea2f28100cfd (diff)
downloadmeson-03311e6d8c7e6e84ef2f5474dc4b39d9cb97d2e9.zip
meson-03311e6d8c7e6e84ef2f5474dc4b39d9cb97d2e9.tar.gz
meson-03311e6d8c7e6e84ef2f5474dc4b39d9cb97d2e9.tar.bz2
Skip if a suitable D alternative is not found.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 4810264..f1b2249 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -4816,7 +4816,9 @@ class NativeFileTests(BasePlatformTests):
return 'gdc', 'gdc'
else:
raise unittest.SkipTest('No alternative dlang compiler found.')
- return 'dmd', 'dmd'
+ if shutil.which('dmd'):
+ return 'dmd', 'dmd'
+ raise unittest.SkipTest('No alternative dlang compiler found.')
self.helper_for_compiler('d', cb)
@skip_if_not_language('cs')