diff options
Diffstat (limited to 'tests/sources/tar.py')
-rw-r--r-- | tests/sources/tar.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/sources/tar.py b/tests/sources/tar.py index ed662dcd2..48d6eeafe 100644 --- a/tests/sources/tar.py +++ b/tests/sources/tar.py @@ -12,10 +12,11 @@ import pytest from buildstream import utils from buildstream.exceptions import ErrorDomain -from buildstream.testing import generate_project, generate_element +from buildstream.testing import generate_project, generate_element, SourceTests from buildstream.testing import cli # pylint: disable=unused-import from buildstream.testing._utils.site import HAVE_LZIP from tests.testutils.file_server import create_file_server +from tests.testutils.repo.tar import Tar from . import list_dir_contents DATA_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "tar",) @@ -41,6 +42,11 @@ def _assemble_tar_lz(workingdir, srcdir, dstfile): os.chdir(old_dir) +class TestTarSource(SourceTests): + KIND = "tar" + REPO = Tar + + # Test that without ref, consistency is set appropriately. @pytest.mark.datafiles(os.path.join(DATA_DIR, "no-ref")) def test_no_ref(cli, tmpdir, datafiles): |