diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-10-21 17:36:38 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-10-21 17:36:38 +0900 |
commit | 41f8e86ce96ec72faccace111290a36be73ecd7c (patch) | |
tree | d68d496e4f6e3dbed33857297c90483aa60cbbfb /tests/frontend | |
parent | 316e05ca59ae6dd27647ff5586ee2b192fb58b4e (diff) | |
download | buildstream-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.py | 5 |
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 |