diff options
author | Jürg Billeter <j@bitron.ch> | 2018-02-27 09:52:28 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2018-02-27 13:09:56 +0100 |
commit | f685ea6898a8121caba1f8f2450cb957350f14ea (patch) | |
tree | ccea265faed122883cf4bc2043006ede86bd6cba /tests/frontend/pull.py | |
parent | 618f7d692a19683c5e2409f56669d367d092d1bb (diff) | |
download | buildstream-f685ea6898a8121caba1f8f2450cb957350f14ea.tar.gz |
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.
Diffstat (limited to 'tests/frontend/pull.py')
-rw-r--r-- | tests/frontend/pull.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/frontend/pull.py b/tests/frontend/pull.py index 3ac63e68a..d53e90882 100644 --- a/tests/frontend/pull.py +++ b/tests/frontend/pull.py @@ -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' |