<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/git-repo.git/tests/e2e/test_sync_modes.py, branch stable</title>
<subtitle>Mirror of gerrit.googlesource.com/git-repo</subtitle>
<id>https://git.enea.com/cgit/tools/git-repo.git/atom?h=stable</id>
<link rel='self' href='https://git.enea.com/cgit/tools/git-repo.git/atom?h=stable'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/'/>
<updated>2026-10-26T19:57:09+00:00</updated>
<entry>
<title>tests: e2e: add tests for network-only &amp; local-only syncs</title>
<updated>2026-10-26T19:57:09+00:00</updated>
<author>
<name>Brian Gan</name>
<email>brgan@google.com</email>
</author>
<published>2026-10-23T01:57:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=887f9a901467c5fa74706439e23a3814c2711bdf'/>
<id>urn:sha1:887f9a901467c5fa74706439e23a3814c2711bdf</id>
<content type='text'>
Cover `repo sync -n` &amp; `-l` on existing checkouts (interleaved &amp;
phased), projects that were never fetched, and two-phase syncs with a
superproject.  `-l` must not touch the network, which the tests check by
taking the server offline.  Also cover tags (`--no-tags` &amp; `sync-tags`),
`--prune`, `--force-sync`, `--force-remove-dirty` &amp; `-d`.

Teach the harness to simulate outages (`GitHost.offline`) and to collect
the requests made during a block (`GitHost.watch_requests`), and add a
few `RepoClient` helpers.

Bug: 566270944
Change-Id: I96b4729a7d4e5b58bc57fb46a060beda35549979
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/648545
Tested-by: Brian Gan &lt;brgan@google.com&gt;
Commit-Queue: Brian Gan &lt;brgan@google.com&gt;
Reviewed-by: Gavin Mak &lt;gavinmak@google.com&gt;
</content>
</entry>
</feed>
