Patchwork D3247: tests: load showstack in test-pull-http.t so network hangs are easier to find

login
register
mail settings
Submitter phabricator
Date April 12, 2018, 3:34 p.m.
Message ID <101e989ea4f2a8a8e021334551d246b5@localhost.localdomain>
Download mbox | patch
Permalink /patch/30798/
State Not Applicable
Headers show

Comments

phabricator - April 12, 2018, 3:34 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG165a77f7ec13: tests: load showstack in test-pull-http.t so network hangs are easier to find (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3247?vs=8053&id=8066

REVISION DETAIL
  https://phab.mercurial-scm.org/D3247

AFFECTED FILES
  tests/test-pull-http.t

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mharbison72, mercurial-devel

Patch

diff --git a/tests/test-pull-http.t b/tests/test-pull-http.t
--- a/tests/test-pull-http.t
+++ b/tests/test-pull-http.t
@@ -1,5 +1,16 @@ 
 #require killdaemons
 
+#if no-windows
+For debugging: this is a pretty simple test that is a good candidate
+for tracking down network-related bugs. Sometimes a command in this
+hangs, so having showstack pre-loaded is sometimes helpful. This also
+gives us a test that at least proves showstack can be loaded.
+  $ cat >> $HGRCPATH <<EOF
+  > [extensions]
+  > showstack = $TESTDIR/../contrib/showstack.py
+  > EOF
+#endif
+
   $ hg init test
   $ cd test
   $ echo a > a