Commit 3d9491dd authored by Jürg Billeter's avatar Jürg Billeter

_stream.py: Do not force `PipelineSelection.ALL` for build with tracking

With the dynamic plan using `_set_required()` we can avoid
pulling/fetching/building unneeded elements even if elements are being
tracked.
parent 270da060
Pipeline #21858459 passed with stages
in 20 minutes and 42 seconds
......@@ -170,7 +170,7 @@ class Stream():
track_cross_junctions=False,
build_all=False):
if build_all or track_targets:
if build_all:
selection = PipelineSelection.ALL
else:
selection = PipelineSelection.PLAN
......
......@@ -273,6 +273,6 @@ def test_push_pull_track_non_strict(cli, tmpdir, datafiles):
# However, pulling has to be deferred until the dependencies have been
# tracked as the strict cache key needs to be calculated before querying
# the caches.
result = cli.run(project=project, args=['build', '--track-all', 'target.bst'])
result = cli.run(project=project, args=['build', '--track-all', '--all', 'target.bst'])
result.assert_success()
assert set(result.get_pulled_elements()) == all_elements
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment