Skip to content

Commit

Permalink
Do not try to run dist test with VS backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane committed Oct 20, 2019
1 parent ad1cfbe commit 7bc7ff1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run_unittests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7bc7ff1

Please sign in to comment.