When running tests, disable shared mode because it will break other tests. Custom tests must be written

This commit is contained in:
Carson Woods
2019-06-27 13:08:49 -06:00
parent 2d3b973ebc
commit 8f46fcb512

View File

@@ -38,6 +38,7 @@
from spack.fetch_strategy import FetchError
from spack.spec import Spec
from spack.version import Version
from spack.main import SpackCommand
#
@@ -61,6 +62,16 @@ def clean_user_environment():
ev.activate(active)
#
# Turn off Spack's shared mode if need be
#
@pytest.fixture(scope='session', autouse=True)
def disable_shared():
if spack.config.get('config:shared'):
share = SpackCommand('share')
share('deactivate')
# Hooks to add command line options or set other custom behaviors.
# They must be placed here to be found by pytest. See:
#