Skip to content
Snippets Groups Projects
Commit f685ea68 authored by Jürg Billeter's avatar Jürg Billeter
Browse files

tests/frontend/pull.py: Do not use a workspace for the non-strict test

The cache status of reverse dependencies of workspaced elements cannot
always be determined upfront.
parent 618f7d69
Branches
Tags
Loading
......@@ -210,8 +210,9 @@ def test_push_pull_non_strict(cli, tmpdir, datafiles):
for element_name in all_elements:
assert cli.get_element_state(project, element_name) == 'downloadable'
# Open a workspace to force change in strict cache key
result = cli.run(project=project, args=['workspace', 'open', 'import-bin.bst', workspace])
# Add a file to force change in strict cache key of import-bin.bst
with open(os.path.join(str(project), 'files', 'bin-files', 'usr', 'bin', 'world'), 'w') as f:
f.write('world')
# Assert that the workspaced element requires a rebuild
assert cli.get_element_state(project, 'import-bin.bst') == 'buildable'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment