Mercurial > hg
comparison tests/test-clonebundles.t @ 32679:3d488079750b
test-clonebundles: conditionalize output for Windows
This was the fallout from 9d6031df42c8 (on stable). Now that individual lines
can be conditionalized, it seems better to be explicit, rather than mash all of
this into one regex. "getaddrinfo failed" was added in 4e566f513fd8 to support
Windows.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 04 Jun 2017 20:37:32 -0400 |
parents | 76ed60630dd5 |
children | 75be14993fda |
comparison
equal
deleted
inserted
replaced
32678:bcb6684d144b | 32679:3d488079750b |
---|---|
49 Manifest file with invalid URL aborts | 49 Manifest file with invalid URL aborts |
50 | 50 |
51 $ echo 'http://does.not.exist/bundle.hg' > server/.hg/clonebundles.manifest | 51 $ echo 'http://does.not.exist/bundle.hg' > server/.hg/clonebundles.manifest |
52 $ hg clone http://localhost:$HGPORT 404-url | 52 $ hg clone http://localhost:$HGPORT 404-url |
53 applying clone bundle from http://does.not.exist/bundle.hg | 53 applying clone bundle from http://does.not.exist/bundle.hg |
54 error fetching bundle: (.* not known|getaddrinfo failed|No address associated with hostname) (re) | 54 error fetching bundle: (.* not known|No address associated with hostname) (re) (no-windows !) |
55 error fetching bundle: [Errno 11004] getaddrinfo failed (windows !) | |
55 abort: error applying bundle | 56 abort: error applying bundle |
56 (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false") | 57 (if this error persists, consider contacting the server operator or disable clone bundles via "--config ui.clonebundles=false") |
57 [255] | 58 [255] |
58 | 59 |
59 Server is not running aborts | 60 Server is not running aborts |