diff options
Diffstat (limited to 'tests/sources/git.py')
-rw-r--r-- | tests/sources/git.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/sources/git.py b/tests/sources/git.py index 22b87ea1c..79d988697 100644 --- a/tests/sources/git.py +++ b/tests/sources/git.py @@ -34,13 +34,20 @@ from buildstream.exceptions import ErrorDomain from buildstream.plugin import CoreWarnings from buildstream.testing import cli # pylint: disable=unused-import from buildstream.testing import generate_project, generate_element, load_yaml +from buildstream.testing import SourceTests from buildstream.testing._utils.site import HAVE_GIT, HAVE_OLD_GIT from tests.testutils.repo.git import Git + DATA_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "git",) +class TestGitSource(SourceTests): + KIND = "git" + REPO = Git + + @pytest.mark.skipif(HAVE_GIT is False, reason="git is not available") @pytest.mark.datafiles(os.path.join(DATA_DIR, "template")) def test_fetch_bad_ref(cli, tmpdir, datafiles): |