Small fix to prevent this test from interfering with others.
This commit is contained in:
parent
55662eca69
commit
72c9604bcb
@ -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):
|
|||||||
{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):
|
|||||||
|
|
||||||
#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):
|
|||||||
|
|
||||||
def test_fetch_log(path):
|
def test_fetch_log(path):
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user