summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-25 23:21:37 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-25 23:26:42 +0900
commit719a3fc3ee15513a790290d009ace5d3ec7bcd17 (patch)
tree0c1d4348af02d376e53eab02618b25783198cff7 /tests
parent7caecc685232a11d69f133858194d806531084a9 (diff)
downloadbuildstream-719a3fc3ee15513a790290d009ace5d3ec7bcd17.tar.gz
Load and save junctioned source refs from/to junction.refs
o _projectrefs.py: Additional constructor option to choose the base name o _project.py: Load two ProjectRefs objects, one for the junctions o source.py: Load and save junctioned source refs with the appropriate ProjectRefs object o tests: Updated some tests to expect junctions to be stored in junction.refs This fixes issue #361
Diffstat (limited to 'tests')
-rw-r--r--tests/frontend/buildcheckout.py2
-rw-r--r--tests/frontend/fetch.py2
-rw-r--r--tests/frontend/show.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/frontend/buildcheckout.py b/tests/frontend/buildcheckout.py
index ba56fc00c..45ef33bae 100644
--- a/tests/frontend/buildcheckout.py
+++ b/tests/frontend/buildcheckout.py
@@ -272,7 +272,7 @@ def test_unfetched_junction(cli, tmpdir, datafiles, ref_storage):
}
}
}
- _yaml.dump(project_refs, os.path.join(project, 'project.refs'))
+ _yaml.dump(project_refs, os.path.join(project, 'junction.refs'))
# Now try to build it, this should automatically result in fetching
# the junction itself at load time.
diff --git a/tests/frontend/fetch.py b/tests/frontend/fetch.py
index 261e0b22e..e074dadae 100644
--- a/tests/frontend/fetch.py
+++ b/tests/frontend/fetch.py
@@ -117,7 +117,7 @@ def test_unfetched_junction(cli, tmpdir, datafiles, ref_storage):
}
}
}
- _yaml.dump(project_refs, os.path.join(project, 'project.refs'))
+ _yaml.dump(project_refs, os.path.join(project, 'junction.refs'))
# Now try to fetch it, this should automatically result in fetching
# the junction itself.
diff --git a/tests/frontend/show.py b/tests/frontend/show.py
index f515fc44d..719dadbf4 100644
--- a/tests/frontend/show.py
+++ b/tests/frontend/show.py
@@ -151,7 +151,7 @@ def test_unfetched_junction(cli, tmpdir, datafiles, ref_storage):
}
}
}
- _yaml.dump(project_refs, os.path.join(project, 'project.refs'))
+ _yaml.dump(project_refs, os.path.join(project, 'junction.refs'))
# Assert the correct error when trying to show the pipeline
result = cli.run(project=project, silent=True, args=[