summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2013-11-28 11:23:33 +0100
committerAndoni Morales Alastruey <ylatuya@gmail.com>2013-11-28 12:02:30 +0100
commit2afb0728d53b7dbcb48e177d8981beb61b6fabb0 (patch)
tree5b959568a1b43bc1319a043d62752e8f9fee9a7b /test
parent49529b5cac3b78377c8346cc6cb5ad4df66fd527 (diff)
build: store the last built version in the recipe status
Diffstat (limited to 'test')
-rw-r--r--test/test_cerbero_build_cookbook.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_cerbero_build_cookbook.py b/test/test_cerbero_build_cookbook.py
index 19c8b493..80b9f9e9 100644
--- a/test/test_cerbero_build_cookbook.py
+++ b/test/test_cerbero_build_cookbook.py
@@ -106,10 +106,12 @@ class PackageTest(unittest.TestCase):
recipe = Recipe1(self.config)
self.cookbook.add_recipe(recipe)
self.cookbook._restore_cache()
- self.cookbook.update_build_status(recipe.name, True)
+ self.cookbook.update_build_status(recipe.name, '1.0')
self.assertTrue(self.cookbook.status[recipe.name].needs_build)
- self.cookbook.update_build_status(recipe.name, False)
+ self.assertEquals(self.cookbook.status[recipe.name].built_version, '1.0')
+ self.cookbook.update_build_status(recipe.name, None)
self.assertFalse(self.cookbook.status[recipe.name].needs_build)
+ self.assertEquals(self.cookbook.status[recipe.name].built_version, None)
def testResetRecipeStatus(self):
recipe = Recipe1(self.config)