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/tar.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/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): |