comparison tests/test-histedit-arguments.t @ 26952:4e566f513fd8

tests: tolerate differences between Linux and Windows error strings These are related to differences in how missing files and network connection failures are displayed. I opted to combine the strings in one line instead of using '#if windows' blocks around entire commands in order to avoid future changes being accidentally missed in the Windows sections. Globbing away the entire output seemed wrong, as it could mask other failures. The raw messages involved are: Linux Windows "* not known" <-> "getaddrinfo failed" "Connection refused" <-> "No connection could be made because the target machine actively refused it" "No such file or directory" <-> "The system cannot find the file specified" Issue 4941 indicates that NetBSD has yet another string for "* not known". Also, the histedit test shows that the missing file is printed first on Windows, last on Linux. That is controlled in windows.py:posixfile if we care to change it.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 09 Nov 2015 13:12:35 -0500
parents 50fc80e46786
children 4898e442f392
comparison
equal deleted inserted replaced
26951:af1ae4ee755c 26952:4e566f513fd8
337 Corrupt histedit state file 337 Corrupt histedit state file
338 $ sed 's/8fda0c726bf2/123456789012/' .hg/histedit-state > ../corrupt-histedit 338 $ sed 's/8fda0c726bf2/123456789012/' .hg/histedit-state > ../corrupt-histedit
339 $ mv ../corrupt-histedit .hg/histedit-state 339 $ mv ../corrupt-histedit .hg/histedit-state
340 $ hg histedit --abort 340 $ hg histedit --abort
341 warning: encountered an exception during histedit --abort; the repository may not have been completely cleaned up 341 warning: encountered an exception during histedit --abort; the repository may not have been completely cleaned up
342 abort: No such file or directory: * (glob) 342 abort: .*(No such file or directory:|The system cannot find the file specified).* (re)
343 [255] 343 [255]
344 Histedit state has been exited 344 Histedit state has been exited
345 $ hg summary -q 345 $ hg summary -q
346 parent: 5:63379946892c 346 parent: 5:63379946892c
347 commit: 1 added, 1 unknown (new branch head) 347 commit: 1 added, 1 unknown (new branch head)