From c290aaad03f3810eba1283961a5f5759b6492c27 Mon Sep 17 00:00:00 2001 From: "Martin A. Brown" Date: Tue, 19 Apr 2016 19:09:17 -0700 Subject: [PATCH] fix lifecycle test (since deleting build directory) --- tests/long_inventory.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/long_inventory.py b/tests/long_inventory.py index a81adec..0020ca0 100644 --- a/tests/long_inventory.py +++ b/tests/long_inventory.py @@ -49,6 +49,8 @@ class TestInventoryHandling(TestInventoryBase): self.assertEqual(dict(), doc.output.md5sums) inv = tldp.inventory.Inventory(c.pubdir, c.sourcedir) self.assertEqual(1, len(inv.stale.keys())) + if not os.path.isdir(c.builddir): + os.mkdir(c.builddir) exitcode = tldp.driver.run(argv) inv = tldp.inventory.Inventory(c.pubdir, c.sourcedir) self.assertEqual(1, len(inv.published.keys())) @@ -75,6 +77,8 @@ class TestInventoryHandling(TestInventoryBase): # -- rebuild (why not?) # + if not os.path.isdir(c.builddir): + os.mkdir(c.builddir) exitcode = tldp.driver.run(argv) self.assertEqual(exitcode, os.EX_OK) inv = tldp.inventory.Inventory(c.pubdir, c.sourcedir)