diff --git a/run_unittests.py b/run_unittests.py index 4da3a8fd027c..cb5f12592d36 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -2497,6 +2497,8 @@ def test_static_library_lto(self): def test_dist_git(self): if not shutil.which('git'): raise unittest.SkipTest('Git not found') + if self.backend is not Backend.ninja: + raise unittest.SkipTest('Dist is only supported with Ninja') try: self.dist_impl(_git_init) @@ -2531,6 +2533,8 @@ def hg_init(project_dir): def test_dist_git_script(self): if not shutil.which('git'): raise unittest.SkipTest('Git not found') + if self.backend is not Backend.ninja: + raise unittest.SkipTest('Dist is only supported with Ninja') try: with tempfile.TemporaryDirectory() as tmpdir: