Skip to content

Commit 3e40010

Browse files
committed
fix: skip access test when root
chmod works only for non-root user we should skip the test in root environments as it won’t pass
1 parent a3feab2 commit 3e40010

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_misc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4377,6 +4377,7 @@ def test_setconfig(node_factory, bitcoind):
43774377
assert lines == ["# Created and update by setconfig, but you can edit this manually when node is stopped.", "min-capacity-sat=400000"]
43784378

43794379

4380+
@pytest.mark.skipif(os.getuid() == 0, reason="Test requires non-root user for permission checks to work")
43804381
def test_setconfig_access(node_factory, bitcoind):
43814382
"""Test that we correctly fail (not crash) if config file/dir not writable"""
43824383

0 commit comments

Comments
 (0)