test/cmd/env.py: fix check_viewdir_removal
This commit is contained in:
parent
686ece1eb7
commit
265c479984
@ -74,9 +74,11 @@ def check_mpileaks_and_deps_in_view(viewdir):
|
|||||||
|
|
||||||
def check_viewdir_removal(viewdir):
|
def check_viewdir_removal(viewdir):
|
||||||
"""Check that the uninstall/removal worked."""
|
"""Check that the uninstall/removal worked."""
|
||||||
assert not os.path.exists(str(viewdir.join(".spack"))) or os.listdir(
|
view_spack_dir = str(viewdir.join(".spack"))
|
||||||
str(viewdir.join(".spack"))
|
if not os.path.exists(view_spack_dir):
|
||||||
) == ["projections.yaml"]
|
return
|
||||||
|
|
||||||
|
assert all(f in ["projections.yaml", "metadata.yaml"] for f in os.listdir(view_spack_dir))
|
||||||
|
|
||||||
|
|
||||||
def test_add():
|
def test_add():
|
||||||
|
Loading…
Reference in New Issue
Block a user