Fix svn tests, skip if svnadmin not found (#13137)

This commit is contained in:
Adam J. Stewart 2019-10-14 01:40:20 -07:00 committed by Massimiliano Culpo
parent bdcf9ba5cd
commit e1cf35a82b
2 changed files with 4 additions and 2 deletions

View File

@ -109,7 +109,8 @@ def test_git_mirror(mock_git_repository):
@pytest.mark.skipif(
not which('svn'), reason='requires subversion to be installed')
not which('svn') or not which('svnadmin'),
reason='requires subversion to be installed')
def test_svn_mirror(mock_svn_repository):
set_up_package('svn-test', mock_svn_repository, 'svn')
check_mirror()

View File

@ -19,7 +19,8 @@
pytestmark = pytest.mark.skipif(
not which('svn'), reason='requires subversion to be installed')
not which('svn') or not which('svnadmin'),
reason='requires subversion to be installed')
@pytest.mark.parametrize("type_of_test", ['default', 'rev0'])