diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-12-09 18:38:31 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-12-09 19:55:18 +0200 |
commit | 03311e6d8c7e6e84ef2f5474dc4b39d9cb97d2e9 (patch) | |
tree | 82e598cad831be45ab831e913273b942b764a843 /run_unittests.py | |
parent | f1116bc16a0819ddb427789b8f21ea2f28100cfd (diff) | |
download | meson-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-x | run_unittests.py | 4 |
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') |