Fix svn tests, skip if svnadmin not found (#13137)
This commit is contained in:
parent
bdcf9ba5cd
commit
e1cf35a82b
@ -109,7 +109,8 @@ def test_git_mirror(mock_git_repository):
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(
|
@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):
|
def test_svn_mirror(mock_svn_repository):
|
||||||
set_up_package('svn-test', mock_svn_repository, 'svn')
|
set_up_package('svn-test', mock_svn_repository, 'svn')
|
||||||
check_mirror()
|
check_mirror()
|
||||||
|
@ -19,7 +19,8 @@
|
|||||||
|
|
||||||
|
|
||||||
pytestmark = pytest.mark.skipif(
|
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'])
|
@pytest.mark.parametrize("type_of_test", ['default', 'rev0'])
|
||||||
|
Loading…
Reference in New Issue
Block a user