summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2019-01-24 00:24:56 -0500
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2019-01-24 06:14:20 +0000
commitef2b464807580978de1c48a451bbdf9fbd45034f (patch)
treecd92e3d264277bab4854ec763f431ec55d0f160c /tests
parent341b131b35c16f1224249559c73bc525b8116d44 (diff)
downloadbuildstream-ef2b464807580978de1c48a451bbdf9fbd45034f.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/frontend/track.py7
1 files changed, 3 insertions, 4 deletions
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)