summaryrefslogtreecommitdiff
path: root/tests/frontend
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-21 17:36:38 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-21 17:36:38 +0900
commit41f8e86ce96ec72faccace111290a36be73ecd7c (patch)
treed68d496e4f6e3dbed33857297c90483aa60cbbfb /tests/frontend
parent316e05ca59ae6dd27647ff5586ee2b192fb58b4e (diff)
downloadbuildstream-41f8e86ce96ec72faccace111290a36be73ecd7c.tar.gz
tests/frontend/buildcheckout.py: Assert that build directories are removed
After successful builds.
Diffstat (limited to 'tests/frontend')
-rw-r--r--tests/frontend/buildcheckout.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/frontend/buildcheckout.py b/tests/frontend/buildcheckout.py
index 819897928..197336d31 100644
--- a/tests/frontend/buildcheckout.py
+++ b/tests/frontend/buildcheckout.py
@@ -28,6 +28,11 @@ def test_build_checkout(datafiles, cli, strict):
result = cli.run(project=project, args=strict_args(['build', 'target.bst'], strict))
assert result.exit_code == 0
+ # Assert that after a successful build, the builddir is empty
+ builddir = os.path.join(cli.directory, 'build')
+ assert os.path.isdir(builddir)
+ assert not os.listdir(builddir)
+
# Now check it out
result = cli.run(project=project, args=strict_args([
'checkout', 'target.bst', checkout