Mercurial > hg
comparison tests/test-wireproto-exchangev2-shallow.t @ 46800:186c0f6fbc16
tests: ask any chg instance to terminate before looking at sqlite dbs
There are spurious errors in CI where the database is still locked, so
force the daemon to quit to get deterministic behavior. Since the kill
command itself is racy, also sleep 2s to give the server time to wake up
and exit.
Differential Revision: https://phab.mercurial-scm.org/D10244
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Sat, 20 Mar 2021 00:37:57 +0100 |
parents | c4787ea85cc7 |
children |
comparison
equal
deleted
inserted
replaced
46799:283828850c56 | 46800:186c0f6fbc16 |
---|---|
174 getting dir1/f | 174 getting dir1/f |
175 6 files updated, 0 files merged, 0 files removed, 0 files unresolved | 175 6 files updated, 0 files merged, 0 files removed, 0 files unresolved |
176 updating the branch cache | 176 updating the branch cache |
177 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob) | 177 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob) |
178 | 178 |
179 #if chg | |
180 $ hg --kill-chg-daemon | |
181 $ sleep 2 | |
182 #endif | |
179 $ sqlite3 -line client-shallow-1/.hg/store/db.sqlite << EOF | 183 $ sqlite3 -line client-shallow-1/.hg/store/db.sqlite << EOF |
180 > SELECT id, path, revnum, node, p1rev, p2rev, linkrev, flags FROM filedata ORDER BY id ASC; | 184 > SELECT id, path, revnum, node, p1rev, p2rev, linkrev, flags FROM filedata ORDER BY id ASC; |
181 > EOF | 185 > EOF |
182 id = 1 | 186 id = 1 |
183 path = a | 187 path = a |
345 getting dir0/d | 349 getting dir0/d |
346 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 350 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
347 updating the branch cache | 351 updating the branch cache |
348 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob) | 352 (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob) |
349 | 353 |
354 #if chg | |
355 $ hg --kill-chg-daemon | |
356 $ sleep 2 | |
357 #endif | |
350 $ sqlite3 -line client-shallow-narrow-1/.hg/store/db.sqlite << EOF | 358 $ sqlite3 -line client-shallow-narrow-1/.hg/store/db.sqlite << EOF |
351 > SELECT id, path, revnum, node, p1rev, p2rev, linkrev, flags FROM filedata ORDER BY id ASC; | 359 > SELECT id, path, revnum, node, p1rev, p2rev, linkrev, flags FROM filedata ORDER BY id ASC; |
352 > EOF | 360 > EOF |
353 id = 1 | 361 id = 1 |
354 path = dir0/c | 362 path = dir0/c |