summaryrefslogtreecommitdiff
path: root/lib/spack/spack/test/llnl/util/lock.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/test/llnl/util/lock.py')
-rw-r--r--lib/spack/spack/test/llnl/util/lock.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spack/spack/test/llnl/util/lock.py b/lib/spack/spack/test/llnl/util/lock.py
index 800c9d63ad..d4b61929c2 100644
--- a/lib/spack/spack/test/llnl/util/lock.py
+++ b/lib/spack/spack/test/llnl/util/lock.py
@@ -661,6 +661,10 @@ def test_upgrade_read_to_write(private_lock_path):
assert lock._file is None
+@pytest.mark.skipif(
+ os.environ.get('SPACK_TEST_SOLVER') == 'clingo',
+ reason='Test for Clingo are run in a container with root permissions'
+)
def test_upgrade_read_to_write_fails_with_readonly_file(private_lock_path):
"""Test that read-only file can be read-locked but not write-locked."""
# ensure lock file exists the first time