Page MenuHomePhabricator

test: cover read-only blockstore
ClosedPublic

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

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCa50ebbf5c376: test: cover read-only blockstore
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

This revision is now accepted and ready to land.Thu, Nov 20, 09:03
This revision was automatically updated to reflect the committed changes.