From 02afb30990c4bed567f1e3e4b0c4cc81836b76db Mon Sep 17 00:00:00 2001 From: Carson Woods Date: Tue, 16 Jul 2019 14:46:43 -0600 Subject: [PATCH] Remove unit testing for shared spack mode --- lib/spack/spack/test/cmd/share.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 lib/spack/spack/test/cmd/share.py diff --git a/lib/spack/spack/test/cmd/share.py b/lib/spack/spack/test/cmd/share.py deleted file mode 100644 index f23cba8d65d..00000000000 --- a/lib/spack/spack/test/cmd/share.py +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other -# Spack Project Developers. See the top-level COPYRIGHT file for details. -# -# SPDX-License-Identifier: (Apache-2.0 OR MIT) - -import pytest - -import spack.config -import spack.error - -from spack.main import SpackCommand - -share = SpackCommand('share') -install = SpackCommand('install') - - -@pytest.mark.test_activate -def test_activate(): - share('activate') - assert spack.config.get('config:shared') is True - - -@pytest.mark.test_deactivate -def test_deactivate(): - # Ensures that this test can be run individually - # Activates shared mode so shared mode can be deactivated - if not spack.config.get('config:shared'): - share('activate') - share('deactivate') - assert spack.config.get('config:shared') is False