Skip to content
Snippets Groups Projects
Commit 72c9604b authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Small fix to prevent this test from interfering with others.

parent 55662eca
Branches
Tags
No related merge requests found
...@@ -79,12 +79,16 @@ def setUp(self): ...@@ -79,12 +79,16 @@ def setUp(self):
pkgX.installed = False pkgX.installed = False
pkgY.installed = False pkgY.installed = False
self.saved_db = spack.db
pkgDb = MockPackageDb({specX:pkgX, specY:pkgY}) pkgDb = MockPackageDb({specX:pkgX, specY:pkgY})
spack.db = pkgDb spack.db = pkgDb
def tearDown(self): def tearDown(self):
super(UnitInstallTest, self).tearDown() super(UnitInstallTest, self).tearDown()
spack.db = self.saved_db
def test_installing_both(self): def test_installing_both(self):
mo = MockOutput() mo = MockOutput()
...@@ -96,6 +100,7 @@ def test_installing_both(self): ...@@ -96,6 +100,7 @@ def test_installing_both(self):
{bIdX:test_install.TestResult.PASSED, {bIdX:test_install.TestResult.PASSED,
bIdY:test_install.TestResult.PASSED}) bIdY:test_install.TestResult.PASSED})
def test_dependency_already_installed(self): def test_dependency_already_installed(self):
mo = MockOutput() mo = MockOutput()
...@@ -107,6 +112,7 @@ def test_dependency_already_installed(self): ...@@ -107,6 +112,7 @@ def test_dependency_already_installed(self):
#TODO: add test(s) where Y fails to install #TODO: add test(s) where Y fails to install
class MockPackageDb(object): class MockPackageDb(object):
def __init__(self, init=None): def __init__(self, init=None):
self.specToPkg = {} self.specToPkg = {}
...@@ -118,4 +124,3 @@ def get(self, spec): ...@@ -118,4 +124,3 @@ def get(self, spec):
def test_fetch_log(path): def test_fetch_log(path):
return [] return []
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment