Skip to content

Commit c88ed6e

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 48182ef commit c88ed6e

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
@@ -4382,6 +4382,7 @@ def test_setconfig(node_factory, bitcoind):
43824382
assert lines == ["# Created and update by setconfig, but you can edit this manually when node is stopped.", "min-capacity-sat=400000"]
43834383

43844384

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

0 commit comments

Comments
 (0)