changeset 47548:5830539c46be

remotefilelog: tweak corrupt cache test to grep more flexibly I'm about to fix the abuse of RuntimeError here, which breaks the test if I don't do this. Differential Revision: https://phab.mercurial-scm.org/D11005
author Augie Fackler <augie@google.com>
date Wed, 07 Jul 2021 13:20:47 -0400
parents 20b37ef33ebc
children e972077600e5
files tests/test-remotefilelog-corrupt-cache.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-remotefilelog-corrupt-cache.t	Mon Jul 05 06:39:29 2021 +0200
+++ b/tests/test-remotefilelog-corrupt-cache.t	Wed Jul 07 13:20:47 2021 -0400
@@ -37,7 +37,7 @@
   > EOF
   $ chmod u+w $CACHEDIR/master/11/f6ad8ec52a2984abaafd7c3b516503785c2072/1406e74118627694268417491f018a4a883152f0
   $ echo x > $CACHEDIR/master/11/f6ad8ec52a2984abaafd7c3b516503785c2072/1406e74118627694268417491f018a4a883152f0
-  $ hg up tip 2>&1 | egrep "^RuntimeError"
+  $ hg up tip 2>&1 | egrep "^[^ ].*unexpected remotefilelog"
   RuntimeError: unexpected remotefilelog header: illegal format
 
 Verify detection and remediation when remotefilelog.validatecachelog is set