Commit e6da792a authored by Jörg Sonnenberger's avatar Jörg Sonnenberger
Browse files

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.
parent 1bb6d901c6a5
Pipeline #19573 failed with stages
in 33 minutes and 13 seconds
......@@ -176,6 +176,10 @@ Shallow clone pulls down latest revision of every file
updating the branch cache
(sent 5 HTTP requests and * bytes; received * bytes in responses) (glob)
#if chg
$ hg --kill-chg-daemon
$ sleep 2
#endif
$ sqlite3 -line client-shallow-1/.hg/store/db.sqlite << EOF
> SELECT id, path, revnum, node, p1rev, p2rev, linkrev, flags FROM filedata ORDER BY id ASC;
> EOF
......@@ -347,6 +351,10 @@ Test a shallow clone with only some files
updating the branch cache
(sent 5 HTTP requests and * bytes; received * bytes in responses) (glob)
#if chg
$ hg --kill-chg-daemon
$ sleep 2
#endif
$ sqlite3 -line client-shallow-narrow-1/.hg/store/db.sqlite << EOF
> SELECT id, path, revnum, node, p1rev, p2rev, linkrev, flags FROM filedata ORDER BY id ASC;
> EOF
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment