##// END OF EJS Templates
tests: add a substitution for ENOTDIR/ERROR_PATH_NOT_FOUND messages
Matt Harbison -
r35231:b33d4cf3 default
parent child Browse files
Show More
@@ -47,6 +47,13 b' substitutions = ['
47 # FormatMessage(ERROR_FILE_NOT_FOUND)
47 # FormatMessage(ERROR_FILE_NOT_FOUND)
48 br'The system cannot find the file specified',
48 br'The system cannot find the file specified',
49 ),
49 ),
50 br'$ENOTDIR$': (
51 # strerror()
52 br'Not a directory',
53
54 # FormatMessage(ERROR_PATH_NOT_FOUND)
55 br'The system cannot find the path specified',
56 ),
50 }
57 }
51
58
52 for replace, msgs in _errors.items():
59 for replace, msgs in _errors.items():
@@ -129,8 +129,7 b' Incorrectly configure origbackuppath to '
129 b/c: replacing untracked file
129 b/c: replacing untracked file
130 getting b/c
130 getting b/c
131 creating directory: $TESTTMP/repo/.hg/badorigbackups/b (glob)
131 creating directory: $TESTTMP/repo/.hg/badorigbackups/b (glob)
132 abort: The system cannot find the path specified: '$TESTTMP/repo/.hg/badorigbackups/b' (glob) (windows !)
132 abort: $ENOTDIR$: '$TESTTMP/repo/.hg/badorigbackups/b' (glob)
133 abort: Not a directory: '$TESTTMP/repo/.hg/badorigbackups/b' (no-windows !)
134 [255]
133 [255]
135 $ cat .hg/badorigbackups
134 $ cat .hg/badorigbackups
136 data
135 data
General Comments 0
You need to be logged in to leave comments. Login now