summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-09-15 18:11:58 +0200
committerJürg Billeter <j@bitron.ch>2020-09-16 10:19:54 +0200
commit3cfe7a1acaf2c4b6d92d26e4d5030227ccad0d50 (patch)
tree84f56be225fa3805f343ca3cb4757a6b86fde469
parent84c22359c49ecc0006794abb3b16065ac50eae28 (diff)
downloadbuildstream-3cfe7a1acaf2c4b6d92d26e4d5030227ccad0d50.tar.gz
tests/frontend/rebuild.py: Add assertion for built elements
-rw-r--r--tests/frontend/rebuild.py8
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