From c9db2eb93183b73806b8d207af671bbeddc76f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Tue, 27 Feb 2018 10:44:38 +0100 Subject: tests/frontend/workspace.py: Add cache key checks to test_build Regression test for #273 --- tests/frontend/workspace.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/frontend') diff --git a/tests/frontend/workspace.py b/tests/frontend/workspace.py index a58598bf6..974dc57fb 100644 --- a/tests/frontend/workspace.py +++ b/tests/frontend/workspace.py @@ -193,9 +193,11 @@ def test_build(cli, tmpdir, datafiles, kind): # Build modified workspace assert cli.get_element_state(project, element_name) == 'buildable' + assert cli.get_element_key(project, element_name) == "{:?<64}".format('') result = cli.run(project=project, args=['build', element_name]) result.assert_success() assert cli.get_element_state(project, element_name) == 'cached' + assert cli.get_element_key(project, element_name) != "{:?<64}".format('') # Checkout the result result = cli.run(project=project, args=[ -- cgit v1.2.1