From ef2b464807580978de1c48a451bbdf9fbd45034f Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Thu, 24 Jan 2019 00:24:56 -0500 Subject: tests/frontend/track.py: test_track_error_cannot_write_file() fixup This tests how BuildStream reacts when it fails to write the tracking results to the element files or project.refs file, which is an operation that plugins do not play a part in. As such, removing the per repo kind parameterization from this test as multiple runs are redundant here. --- tests/frontend/track.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/frontend/track.py b/tests/frontend/track.py index 8857294ac..a4ace92b6 100644 --- a/tests/frontend/track.py +++ b/tests/frontend/track.py @@ -676,21 +676,20 @@ def test_track_junction_included(cli, tmpdir, datafiles, ref_storage, kind): @pytest.mark.datafiles(DATA_DIR) -@pytest.mark.parametrize("kind", [(kind) for kind in ALL_REPO_KINDS]) -def test_track_error_cannot_write_file(cli, tmpdir, datafiles, kind): +def test_track_error_cannot_write_file(cli, tmpdir, datafiles): if os.geteuid() == 0: pytest.skip("This is not testable with root permissions") project = str(datafiles) dev_files_path = os.path.join(project, 'files', 'dev-files') element_path = os.path.join(project, 'elements') - element_name = 'track-test-{}.bst'.format(kind) + element_name = 'track-test.bst' configure_project(project, { 'ref-storage': 'inline' }) - repo = create_repo(kind, str(tmpdir)) + repo = create_repo('git', str(tmpdir)) ref = repo.create(dev_files_path) element_full_path = os.path.join(element_path, element_name) -- cgit v1.2.1