summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2020-01-27 19:09:41 +0100
committerJürg Billeter <j@bitron.ch>2020-02-11 17:04:17 +0100
commitf04fd9607703dce1992bcb56327a5f2a06aae55e (patch)
treeacdfa30712c4176ca199d24e1ed03b27c99d7874
parentf886976295fd47883acfb62c8cfe7621f5031481 (diff)
downloadbuildstream-f04fd9607703dce1992bcb56327a5f2a06aae55e.tar.gz
tests/integration/workspace.py: Fix test_incremental_configure...
Add file to workspace directory to ensure second `bst build` is actually building the element.
-rw-r--r--tests/integration/workspace.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/integration/workspace.py b/tests/integration/workspace.py
index 69f267273..d0608f450 100644
--- a/tests/integration/workspace.py
+++ b/tests/integration/workspace.py
@@ -281,7 +281,7 @@ def test_incremental_configure_commands_run_only_once(cli, datafiles):
# Then we build, and check whether the configure step succeeded
res = cli.run(project=project, args=["--cache-buildtrees", "always", "build", element_name])
res.assert_success()
- # check that the workspace was not configured
+ # check that the workspace was not configured outside the sandbox
assert not os.path.exists(os.path.join(workspace, "prepared"))
# the configure should have been run in the sandbox, so check the buildtree
@@ -295,6 +295,10 @@ def test_incremental_configure_commands_run_only_once(cli, datafiles):
assert "./prepared" in files
assert not "./prepared-again" in files
+ # Add file to workspace to trigger an (incremental) build
+ with open(os.path.join(workspace, "newfile"), "w"):
+ pass
+
# When we build again, the configure commands should not be
# called, and we should therefore exit cleanly (the configure
# commands are set to always fail after the first run)