diff options
author | Jürg Billeter <j@bitron.ch> | 2020-09-15 18:11:58 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2020-09-16 10:19:54 +0200 |
commit | 3cfe7a1acaf2c4b6d92d26e4d5030227ccad0d50 (patch) | |
tree | 84f56be225fa3805f343ca3cb4757a6b86fde469 /tests | |
parent | 84c22359c49ecc0006794abb3b16065ac50eae28 (diff) | |
download | buildstream-3cfe7a1acaf2c4b6d92d26e4d5030227ccad0d50.tar.gz |
tests/frontend/rebuild.py: Add assertion for built elements
Diffstat (limited to 'tests')
-rw-r--r-- | tests/frontend/rebuild.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/frontend/rebuild.py b/tests/frontend/rebuild.py index 1aef8e423..a4851e09a 100644 --- a/tests/frontend/rebuild.py +++ b/tests/frontend/rebuild.py @@ -33,3 +33,11 @@ def test_rebuild(datafiles, cli, strict): # which means that a weakly cached target.bst will be staged as dependency. result = cli.run(project=project, args=strict_args(["build", "rebuild-target.bst"], strict)) result.assert_success() + + built_elements = result.get_built_elements() + + assert "rebuild-target.bst" in built_elements + if strict == "strict": + assert "target.bst" in built_elements + else: + assert "target.bst" not in built_elements |