Page MenuHomePhabricator

test: cover read-only blockstore
Needs ReviewPublic

Authored by PiRK on Wed, Nov 19, 17:08.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

Add a test to cover the behavior described in https://github.com/bitcoin/bitcoin/issues/2039, in preparation for fixing it.
I massaged the functional test: fewer levels of try-except wrapping, deduplication of the platform specific code (only the command name changes based on the OS)

This is a backport of core#28545, core#27850 and core#28660
Depends on D18969

Test Plan

ninja check check-functional

Try with the chattr unavailable on linux and check that the test is reported as skipped.

Event Timeline

PiRK requested review of this revision.Wed, Nov 19, 17:08
test/functional/feature_reindex_readonly.py
55–58 ↗(On Diff #56687)

this is an improvement over the original test which succeeds even when it does not test anything. We will see that test is skipped instead of green.

don't log 3 warnings for a single message

shebang --, file permissions