diff options
author | Benjamin Schubert <contact@benschubert.me> | 2020-10-11 12:46:25 +0000 |
---|---|---|
committer | Benjamin Schubert <contact@benschubert.me> | 2020-10-15 20:17:58 +0000 |
commit | c958d4c9bb15e689b13408599245e360f215df21 (patch) | |
tree | 541ed5db6b5a4e3c68247969a34868c5f8bcd37f /tests/sources/git.py | |
parent | 567a9be1a29cd528a8eabc6471566a09a3bbd853 (diff) | |
download | buildstream-bschubert/standardize-source-tests.tar.gz |
tests: Stop using the implicit source tests and explicitely run thembschubert/standardize-source-tests
This makes use of the new helper classes to generate the source tests,
making them explicit to run
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): |