comparison tests/test-subrepo-svn.t @ 35230:feecfefeba25

tests: add a substitution for ENOENT/ERROR_FILE_NOT_FOUND messages Automatic replacement seems better than trying to figure out a check-code rule. I didn't bother looking to see why the error message and file name is reversed in the annotate and histedit tests, based on Windows or not. I originally had this as a list of tuples, conditional on the platform. But there are a couple of 'No such file or directory' messages emitted by Mercurial itself, so unconditional is required for stability. There are also several variants of what I assume is 'connection refused' and 'unknown host' in test-clone.t and test-clonebundles.t for Docker, FreeBSD jails, etc. Yes, these are handled by (re) tags, but maybe it would be better to capture those strings in order to avoid whack-a-mole in future tests. All of this points to using a dictionary containing one or more strings-to-be-replaced values.
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 02 Dec 2017 19:33:34 -0500
parents 1a314176da9c
children 4441705b7111
comparison
equal deleted inserted replaced
35229:61ff0d7d56fd 35230:feecfefeba25
569 ../archive-exclude/s/dir/epsilon.py 569 ../archive-exclude/s/dir/epsilon.py
570 570
571 Test forgetting files, not implemented in svn subrepo, used to 571 Test forgetting files, not implemented in svn subrepo, used to
572 traceback 572 traceback
573 573
574 #if no-windows
575 $ hg forget 'notafile*' 574 $ hg forget 'notafile*'
576 notafile*: No such file or directory 575 notafile*: $ENOENT$
577 [1] 576 [1]
578 #else
579 $ hg forget 'notafile'
580 notafile: * (glob)
581 [1]
582 #endif
583 577
584 Test a subrepo referencing a just moved svn path. Last commit rev will 578 Test a subrepo referencing a just moved svn path. Last commit rev will
585 be different from the revision, and the path will be different as 579 be different from the revision, and the path will be different as
586 well. 580 well.
587 581