From 03311e6d8c7e6e84ef2f5474dc4b39d9cb97d2e9 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 9 Dec 2018 18:38:31 +0200 Subject: Skip if a suitable D alternative is not found. --- run_unittests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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') -- cgit v1.1