comparison tests/test-clone.t @ 51942:73a43fe3e6fd

tests: use pattern matching to mask `ECONNREFUSED` messages The second and third one of these in `test-http-proxy.t` was failing on Windows. The others were found by grep and by failed tests when output was matched and an attempt was made to emit the mask pattern. The first clonebundles failure on Windows emitted: error fetching bundle: [WinError 10061] $ECONNREFUSED$ We should probably stringify that better to get rid of the "[WinError 10061]" part.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 01 Oct 2024 21:34:44 -0400
parents 0f26ee69cf36
children
comparison
equal deleted inserted replaced
51941:e58f02e2f6a9 51942:73a43fe3e6fd
616 abort: error: nonnumeric port: 'url' 616 abort: error: nonnumeric port: 'url'
617 [100] 617 [100]
618 618
619 No remote source 619 No remote source
620 620
621 #if windows
622 $ hg clone http://$LOCALIP:3121/a b 621 $ hg clone http://$LOCALIP:3121/a b
623 abort: error: * (glob) 622 abort: error: $ECONNREFUSED$
624 [100] 623 [100]
625 #else 624
626 $ hg clone http://$LOCALIP:3121/a b
627 abort: error: *refused* (glob)
628 [100]
629 #endif
630 $ rm -rf b # work around bug with http clone 625 $ rm -rf b # work around bug with http clone
631 626
632 627
633 #if unix-permissions no-root 628 #if unix-permissions no-root
634 629