Skip refcount-inspecting retry tests in remote variant

test_create_changed_file_retry_rolls_back_chunks and
test_create_erroneous_file_read_retry_rolls_back_chunks open a local
Cache/Repository to inspect chunk refcounts. In RemoteArchiverTestCase the
repo was created via a remote (__testsuite__:) location, so opening it
locally triggers the "repository was previously located at ssh://..."
relocation prompt, which reads stdin and fails under pytest.

These checks are inherently local (they poke at cache internals), so skip
them in the remote variant, like test_debug_put_get_delete_obj already does.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Thomas Waldmann 2026-06-26 18:44:54 +02:00
parent 0b55c8bc29
commit c19f84da2d
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -5008,6 +5008,14 @@ class RemoteArchiverTestCase(ArchiverTestCase):
def test_debug_put_get_delete_obj(self):
pass
@unittest.skip('only works locally') # inspects cache chunk refcounts via a local Cache/Repository
def test_create_changed_file_retry_rolls_back_chunks(self):
pass
@unittest.skip('only works locally') # inspects cache chunk refcounts via a local Cache/Repository
def test_create_erroneous_file_read_retry_rolls_back_chunks(self):
pass
@unittest.skip('only works locally')
def test_config(self):
pass