Read about our upcoming Code of Conduct on this issue

tests: better determinism in test-chg.t

chg tests fail pretty often with "Sample count: *" line disappearing.
It disappears because the sample count is zero, in which case a custom message is printed.
This commit makes the test succeed in that case.
17 jobs for topic/default/less-flaky-chg-tests in 54 minutes and 56 seconds (queued for 5 seconds)
latest
Status Name Job ID Coverage
  Tests
passed check-pytype-py3 #256332

00:23:28

passed checks-py2 #256319

00:04:01

passed checks-py3 #256320

00:03:04

passed rust-cargo-test-py2 #256321

00:02:08

passed rust-cargo-test-py3 #256322

00:02:03

passed test-py2 #256323

00:23:43

passed test-py2-chg #256330

00:54:54

passed test-py2-pure #256325

00:28:22

passed test-py2-rust #256327

00:29:55

failed test-py3 #256324

00:14:05

passed test-py3-chg #256331

00:09:23

passed test-py3-pure #256326

00:09:40

passed test-py3-rhg #256329

00:24:08

passed test-py3-rust #256328

00:15:25

manual windows-py3 #256333
windows allowed to fail manual
manual windows-py3-pyox #256334
windows allowed to fail manual
 
  Phabricator
skipped phabricator-refresh #256335
 
Name Stage Failure
failed
test-py3 Tests
Skipped test-rhg.t: missing feature: running with rhg as 'hg'
Skipped test-sparse-fsmonitor.t: skipped
Skipped test-sparse-revlog.t: missing artifact, run "/tmp/mercurial-ci/tests/artifacts/scripts/generate-churning-bundle.py"
Skipped test-verify-repo-operations.py: missing feature: allow slow tests (use --allow-slow-tests)
Failed test-wireproto-exchangev2-shallow.t: output changed
# Ran 918 tests, 61 skipped, 1 failed.
python hash seed: 2557301904
Cleaning up file based variables
ERROR: Job failed: exit code 1