From c19f84da2d450b7922a995ecf1adce8c8d89b44e Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 26 Jun 2026 18:44:54 +0200 Subject: [PATCH] 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 --- src/borg/testsuite/archiver.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/borg/testsuite/archiver.py b/src/borg/testsuite/archiver.py index 3ca8a01b2..93c9f00ec 100644 --- a/src/borg/testsuite/archiver.py +++ b/src/borg/testsuite/archiver.py @@ -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